projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f41278
)
Remove unnecessary test in ast2firm: A switch-statement always has a body.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Fri, 4 Feb 2011 14:27:16 +0000
(14:27 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Fri, 4 Feb 2011 14:27:16 +0000
(14:27 +0000)
[r28297]
ast2firm.c
patch
|
blob
|
history
diff --git
a/ast2firm.c
b/ast2firm.c
index
829a4d2
..
1f82c55
100644
(file)
--- 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();