From: Matthias Braun Date: Wed, 9 Feb 2011 14:50:48 +0000 (+0000) Subject: fix cp_error065.c X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=30c2c9e13c5e0770844da2255f6c65edfa384f98;p=cparser fix cp_error065.c [r28357] --- diff --git a/ast2firm.c b/ast2firm.c index 933e1f8..c744881 100644 --- 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) == mode); + type_t *const type = skip_typeref(expression->base.type); + ir_mode *const mode = get_ir_mode_arithmetic(type); ir_node *const val = new_d_Phi(dbgi, lengthof(in), in, mode); return val;