]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Remove accidental hack in ipa_polymorphic_call_context::set_by_invariant
authorJan Hubicka <jh@suse.cz>
Wed, 17 Jan 2024 18:16:47 +0000 (19:16 +0100)
committerJan Hubicka <jh@suse.cz>
Wed, 17 Jan 2024 18:16:47 +0000 (19:16 +0100)
I managed to commit a hack setting offset to 0 in
ipa_polymorphic_call_context::set_by_invariant.  This makes it to give up on multiple
inheritance, but most likely won't give bad code since the ohter base will be of
different type.

gcc/ChangeLog:

* ipa-polymorphic-call.cc (ipa_polymorphic_call_context::set_by_invariant): Remove
accidental hack reseting offset.

gcc/ipa-polymorphic-call.cc

index 8667059abee2cf81d8abe05c418e215f7ae0569b..81de6d7fc33aa1dea013d76e5e0ddf7bd8b20c35 100644 (file)
@@ -766,7 +766,6 @@ ipa_polymorphic_call_context::set_by_invariant (tree cst,
   tree base;
 
   invalid = false;
-  off = 0;
   clear_outer_type (otr_type);
 
   if (TREE_CODE (cst) != ADDR_EXPR)