Remove unnecessary test in ast2firm: A switch-statement always has a body.
authorChristoph Mallon <christoph.mallon@gmx.de>
Fri, 4 Feb 2011 14:27:16 +0000 (14:27 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Fri, 4 Feb 2011 14:27:16 +0000 (14:27 +0000)
[r28297]

ast2firm.c

index 829a4d2..1f82c55 100644 (file)
@@ -5221,9 +5221,7 @@ static void switch_statement_to_firm(switch_statement_t *statement)
                set_Cond_default_proj(cond, default_proj_nr);
        }
 
-       if (statement->body != NULL) {
-               statement_to_firm(statement->body);
-       }
+       statement_to_firm(statement->body);
 
        if (get_cur_block() != NULL) {
                ir_node *jmp = new_Jmp();