projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
384c947
)
ast2firm: When the result of ?: is unreachable, create a Bad value, not Unknown.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 10 Dec 2012 14:48:18 +0000
(15:48 +0100)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 10 Dec 2012 14:48:18 +0000
(15:48 +0100)
ast2firm.c
patch
|
blob
|
history
diff --git
a/ast2firm.c
b/ast2firm.c
index
5efe9ec
..
5cf341a
100644
(file)
--- a/
ast2firm.c
+++ b/
ast2firm.c
@@
-2789,7
+2789,7
@@
static ir_node *conditional_to_firm(const conditional_expression_t *expression)
if (!enter_jump_target(&exit_target)) {
set_cur_block(new_Block(0, NULL));
if (!is_type_void(type))
- val = new_
Unknown
(mode);
+ val = new_
Bad
(mode);
}
return val;
}