projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
def502c
)
cond may be NULL
author
Matthias Braun
<matze@braunis.de>
Wed, 1 Dec 2010 12:02:47 +0000
(12:02 +0000)
committer
Matthias Braun
<matze@braunis.de>
Wed, 1 Dec 2010 12:02:47 +0000
(12:02 +0000)
[r28169]
ast2firm.c
patch
|
blob
|
history
diff --git
a/ast2firm.c
b/ast2firm.c
index
4e77196
..
8550148
100644
(file)
--- a/
ast2firm.c
+++ b/
ast2firm.c
@@
-5191,7
+5191,7
@@
static void switch_statement_to_firm(switch_statement_t *statement)
}
statement->default_proj_nr = default_proj_nr;
/* safety check: cond might already be folded to a Bad */
- if (is_Cond(cond)) {
+ if (
cond != NULL &&
is_Cond(cond)) {
set_Cond_default_proj(cond, default_proj_nr);
}