projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
933d8f9
)
fix cp_error065.c
author
Matthias Braun
<matze@braunis.de>
Wed, 9 Feb 2011 14:50:48 +0000
(14:50 +0000)
committer
Matthias Braun
<matze@braunis.de>
Wed, 9 Feb 2011 14:50:48 +0000
(14:50 +0000)
[r28357]
ast2firm.c
patch
|
blob
|
history
diff --git
a/ast2firm.c
b/ast2firm.c
index
933e1f8
..
c744881
100644
(file)
--- a/
ast2firm.c
+++ b/
ast2firm.c
@@
-3197,8
+3197,8
@@
static ir_node *conditional_to_firm(const conditional_expression_t *expression)
return NULL;
ir_node *const in[2] = { true_val, false_val };
-
ir_mode *const mode = get_irn_mode(true_val
);
-
assert(get_irn_mode(false_val) == mod
e);
+
type_t *const type = skip_typeref(expression->base.type
);
+
ir_mode *const mode = get_ir_mode_arithmetic(typ
e);
ir_node *const val = new_d_Phi(dbgi, lengthof(in), in, mode);
return val;