summaryrefslogtreecommitdiff
path: root/gcc/ipa-icf-gimple.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ipa-icf-gimple.c')
-rw-r--r--gcc/ipa-icf-gimple.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-icf-gimple.c b/gcc/ipa-icf-gimple.c
index b35d66c9a45..5b176d019d7 100644
--- a/gcc/ipa-icf-gimple.c
+++ b/gcc/ipa-icf-gimple.c
@@ -456,7 +456,7 @@ func_checker::compare_operand (tree t1, tree t2)
z2 = TREE_OPERAND (t2, 2);
ret = compare_ssa_name (x1, x2)
- && compare_ssa_name (y1, y2)
+ && compare_operand (y1, y2)
&& compare_cst_or_decl (z1, z2);
return return_with_debug (ret);