Fix cp_error049.
authorChristoph Mallon <christoph.mallon@gmx.de>
Wed, 3 Sep 2008 20:11:42 +0000 (20:11 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Wed, 3 Sep 2008 20:11:42 +0000 (20:11 +0000)
[r21680]

ast2firm.c

index da8daf1..ff313d2 100644 (file)
@@ -4176,7 +4176,7 @@ static void if_statement_to_firm(if_statement_t *statement)
        }
 
        mature_immBlock(true_block);
-       if (false_block != fallthrough_block) {
+       if (false_block != fallthrough_block && false_block != NULL) {
                mature_immBlock(false_block);
        }
        if (fallthrough_block != NULL) {