aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2024-01-17 19:16:47 +0100
committerJan Hubicka <jh@suse.cz>2024-01-17 19:16:47 +0100
commit4f4820964ebffc03249d98239a4ad2b43dd1a486 (patch)
treebd685a07415a5dcbdfc2e7bd741bfaf95de43ef4 /gcc
parentf74dd70c3c7ef2ac19bca33de5fb03a73fbcd339 (diff)
downloadgcc-4f4820964ebffc03249d98239a4ad2b43dd1a486.zip
gcc-4f4820964ebffc03249d98239a4ad2b43dd1a486.tar.gz
gcc-4f4820964ebffc03249d98239a4ad2b43dd1a486.tar.bz2
Remove accidental hack in ipa_polymorphic_call_context::set_by_invariant
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ipa-polymorphic-call.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/ipa-polymorphic-call.cc b/gcc/ipa-polymorphic-call.cc
index 8667059..81de6d7 100644
--- a/gcc/ipa-polymorphic-call.cc
+++ b/gcc/ipa-polymorphic-call.cc
@@ -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)