From 01255012750ab09ae01827758e3eee34a537efd3 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Fri, 4 Feb 2011 14:27:16 +0000 Subject: [PATCH] Remove unnecessary test in ast2firm: A switch-statement always has a body. [r28297] --- ast2firm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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(); -- 2.20.1