Fix two bugs in operand_equal_p
authorJan Hubicka <jh@suse.cz>
Thu, 19 Nov 2020 19:16:26 +0000 (20:16 +0100)
committerJan Hubicka <jh@suse.cz>
Thu, 19 Nov 2020 19:16:26 +0000 (20:16 +0100)
commit0862d007b564eca8c9a48fca0e689dd3f90db828
tree7637185cc5d739eb5085b3ab891bb250c7b68e1a
parent8156cfaa4c45f1249bbdda29d04b4fef84b7eafe
Fix two bugs in operand_equal_p

* fold-const.c (operand_compare::operand_equal_p): Fix thinko in
COMPONENT_REF handling and guard types_same_for_odr by
virtual_method_call_p.
(operand_compare::hash_operand): Likewise.
gcc/fold-const.c