From 0dbcab321aa3bbbfdab6ae8dbab51e6b4ea47790 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Wed, 27 Apr 2011 19:36:14 +0200 Subject: [PATCH] do not use shortcut to determine operation mode as the left side could be a Bad --- ast2firm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ast2firm.c b/ast2firm.c index f124790..382ca18 100644 --- a/ast2firm.c +++ b/ast2firm.c @@ -2657,7 +2657,7 @@ static ir_node *create_op(dbg_info *dbgi, const binary_expression_t *expression, case EXPR_BINARY_SHIFTRIGHT: case EXPR_BINARY_SHIFTLEFT_ASSIGN: case EXPR_BINARY_SHIFTRIGHT_ASSIGN: - mode = get_irn_mode(left); + mode = get_ir_mode_arithmetic(expression->base.type); right = create_conv(dbgi, right, mode_uint); break; -- 2.20.1