diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-04-12 19:30:51 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-04-12 19:30:51 +0000 |
commit | 905be4e64f0f9136b06cbfb1e006e8eec1de0b4b (patch) | |
tree | 82027c41b30e45c70d7cbb684a70a2c930e7f776 /gcc/ipa-icf-gimple.c | |
parent | f1f52d51acb113222225973d26f679a52d0f9fd3 (diff) | |
download | gcc-905be4e64f0f9136b06cbfb1e006e8eec1de0b4b.tar.gz |
PR tree-optimization/65747
* ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
* g++.dg/torture/pr65747.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222024 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-icf-gimple.c')
-rw-r--r-- | gcc/ipa-icf-gimple.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ipa-icf-gimple.c b/gcc/ipa-icf-gimple.c index 568407da2fd..09adce3d3ec 100644 --- a/gcc/ipa-icf-gimple.c +++ b/gcc/ipa-icf-gimple.c @@ -521,8 +521,8 @@ func_checker::compare_operand (tree t1, tree t2) if (!types_same_for_odr (obj_type_ref_class (t1), obj_type_ref_class (t2))) return return_false_with_msg ("OBJ_TYPE_REF OTR type mismatch"); - if (!compare_ssa_name (OBJ_TYPE_REF_OBJECT (t1), - OBJ_TYPE_REF_OBJECT (t2))) + if (!compare_operand (OBJ_TYPE_REF_OBJECT (t1), + OBJ_TYPE_REF_OBJECT (t2))) return return_false_with_msg ("OBJ_TYPE_REF object mismatch"); } |