Commit b0d5d5de by Roger Sayle Committed by Roger Sayle

tree-gimple.c (is_gimple_stmt): Sink test of IS_EMPTY_STMT into a new NOP_EXPR…

tree-gimple.c (is_gimple_stmt): Sink test of IS_EMPTY_STMT into a new NOP_EXPR case of the switch statement.


	* tree-gimple.c (is_gimple_stmt): Sink test of IS_EMPTY_STMT into
	a new NOP_EXPR case of the switch statement.

From-SVN: r115480
parent 9c930981
2006-07-15 Roger Sayle <roger@eyesopen.com>
* tree-gimple.c (is_gimple_stmt): Sink test of IS_EMPTY_STMT into
a new NOP_EXPR case of the switch statement.
2006-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
PR middle-end/28160
......
......@@ -193,11 +193,12 @@ is_gimple_stmt (tree t)
{
enum tree_code code = TREE_CODE (t);
if (IS_EMPTY_STMT (t))
return 1;
switch (code)
{
case NOP_EXPR:
/* The only valid NOP_EXPR is the empty statement. */
return IS_EMPTY_STMT (t);
case BIND_EXPR:
case COND_EXPR:
/* These are only valid if they're void. */
......
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