From: Christoph Mallon Date: Fri, 4 Feb 2011 14:27:16 +0000 (+0000) Subject: Remove unnecessary test in ast2firm: A switch-statement always has a body. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;ds=sidebyside;h=01255012750ab09ae01827758e3eee34a537efd3;p=cparser Remove unnecessary test in ast2firm: A switch-statement always has a body. [r28297] --- diff --git a/ast2firm.c b/ast2firm.c index 829a4d2..1f82c55 100644 --- a/ast2firm.c +++ b/ast2firm.c @@ -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();