Commit 4c76ebd0 by Martin Liska Committed by Martin Liska

Fix typo in index comparison of CONSTRUCTOR.

2019-06-03  Martin Liska  <mliska@suse.cz>

	* fold-const.c (operand_equal_p): Fix typo as compare_tree_int
	returns 0 when operands are equal.

From-SVN: r271859
parent efb34006
2019-06-03 Martin Liska <mliska@suse.cz>
* fold-const.c (operand_equal_p): Fix typo as compare_tree_int
returns 0 when operands are equal.
2019-06-03 Richard Biener <rguenther@suse.de>
PR tree-optimization/90716
......
......@@ -3508,10 +3508,10 @@ operand_equal_p (const_tree arg0, const_tree arg1, unsigned int flags)
positives for GENERIC. */
|| (c0->index
&& (TREE_CODE (c0->index) != INTEGER_CST
|| !compare_tree_int (c0->index, i)))
|| compare_tree_int (c0->index, i)))
|| (c1->index
&& (TREE_CODE (c1->index) != INTEGER_CST
|| !compare_tree_int (c1->index, i))))
|| compare_tree_int (c1->index, i))))
return 0;
}
return 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment