projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb1ef31
)
Do not crash, when the body of an switch statement is empty.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Fri, 14 Dec 2007 09:50:38 +0000
(09:50 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Fri, 14 Dec 2007 09:50:38 +0000
(09:50 +0000)
[r18739]
ast2firm.c
patch
|
blob
|
history
diff --git
a/ast2firm.c
b/ast2firm.c
index
ac69667
..
c9a1d8c
100644
(file)
--- a/
ast2firm.c
+++ b/
ast2firm.c
@@
-3386,7
+3386,9
@@
static void switch_statement_to_firm(const switch_statement_t *statement)
current_switch_cond = cond;
break_label = break_block;
- statement_to_firm(statement->body);
+ if (statement->body != NULL) {
+ statement_to_firm(statement->body);
+ }
if(get_cur_block() != NULL) {
ir_node *jmp = new_Jmp();