cond may be NULL
authorMatthias Braun <matze@braunis.de>
Wed, 1 Dec 2010 12:02:47 +0000 (12:02 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 1 Dec 2010 12:02:47 +0000 (12:02 +0000)
[r28169]

ast2firm.c

index 4e77196..8550148 100644 (file)
@@ -5191,7 +5191,7 @@ static void switch_statement_to_firm(switch_statement_t *statement)
        }
        statement->default_proj_nr = default_proj_nr;
        /* safety check: cond might already be folded to a Bad */
-       if (is_Cond(cond)) {
+       if (cond != NULL && is_Cond(cond)) {
                set_Cond_default_proj(cond, default_proj_nr);
        }