]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove redundant check from check_types_equal
authorTom Tromey <tromey@adacore.com>
Wed, 5 Aug 2026 19:30:42 +0000 (13:30 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 6 Aug 2026 17:41:46 +0000 (11:41 -0600)
check_types_equal compares both is_nottext and instance_flags, but the
latter includes the former, so the redundant check can be removed.

Reviewed-By: Tankut Baris Aktemur <TankutBaris.Aktemur@amd.com>
Approved-By: Tom de Vries <tdevries@suse.de>
gdb/gdbtypes.c

index f5c0177bff25c9683cfadd32a916ea4464cab680..4b6c01910f4cad20c6ea9e0ff020e5df6360029a 100644 (file)
@@ -4092,7 +4092,6 @@ check_types_equal (struct type *type1, struct type *type2,
       || type1->endianity_is_not_default () != type2->endianity_is_not_default ()
       || type1->has_varargs () != type2->has_varargs ()
       || type1->is_vector () != type2->is_vector ()
-      || type1->is_nottext () != type2->is_nottext ()
       || type1->instance_flags () != type2->instance_flags ()
       || type1->num_fields () != type2->num_fields ())
     return false;