Commit 81d4bb2f by Richard Guenther Committed by Richard Biener

tree-ssa-propagate.c (set_rhs): Check operand of ADDR_EXPR for gimpliness, too.

2005-04-27  Richard Guenther  <rguenth@gcc.gnu.org>

	* tree-ssa-propagate.c (set_rhs): Check operand of
	ADDR_EXPR for gimpliness, too.

From-SVN: r98832
parent a1c8251a
2005-04-27 Richard Guenther <rguenth@gcc.gnu.org>
* tree-ssa-propagate.c (set_rhs): Check operand of
ADDR_EXPR for gimpliness, too.
2005-04-27 Kazu Hirata <kazu@cs.umass.edu>
* tree-ssa-pre.c: Fix a comment typo.
......
......@@ -571,7 +571,8 @@ set_rhs (tree *stmt_p, tree expr)
|| !is_gimple_val (TREE_OPERAND (expr, 1)))
return false;
}
else if (TREE_CODE_CLASS (code) == tcc_unary)
else if (TREE_CODE_CLASS (code) == tcc_unary
|| code == ADDR_EXPR)
{
if (!is_gimple_val (TREE_OPERAND (expr, 0)))
return false;
......
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