From 6a03afdf3e124f0d08809f861ad313da5c3f8e74 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 26 Jan 2005 03:18:06 +0000 Subject: gimple-low.c (block_may_fallthru): Correct handling of SWITCH_EXPR--may fall through if SWITCH_LABELS is NULL. 2005-01-25 Ian Lance Taylor * gimple-low.c (block_may_fallthru): Correct handling of SWITCH_EXPR--may fall through if SWITCH_LABELS is NULL. From-SVN: r94250 --- gcc/gimple-low.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/gimple-low.c') diff --git a/gcc/gimple-low.c b/gcc/gimple-low.c index 17ba039..fe63add 100644 --- a/gcc/gimple-low.c +++ b/gcc/gimple-low.c @@ -287,7 +287,7 @@ block_may_fallthru (tree block) branch to a selected label and hence can not fall through. Otherwise SWITCH_BODY is set, and the switch can fall through. */ - return SWITCH_LABELS (stmt) != NULL_TREE; + return SWITCH_LABELS (stmt) == NULL_TREE; case COND_EXPR: if (block_may_fallthru (COND_EXPR_THEN (stmt))) -- cgit v1.1