* 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
+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
{
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. */