From 30c2c9e13c5e0770844da2255f6c65edfa384f98 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Wed, 9 Feb 2011 14:50:48 +0000 Subject: [PATCH] fix cp_error065.c [r28357] --- ast2firm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.20.1