From 5db9cfb26b9524a5531404ae4911837e60783586 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Tue, 25 Nov 2008 09:32:02 +0000 Subject: [PATCH] avoid using mode_Iu directly [r23963] --- ir/be/beabi.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ir/be/beabi.c b/ir/be/beabi.c index 69506f2a3..f76b26ee5 100644 --- a/ir/be/beabi.c +++ b/ir/be/beabi.c @@ -913,12 +913,12 @@ static ir_node *adjust_alloc(be_abi_irg_t *env, ir_node *alloc, ir_node *curr_sp /* we might need to multiply the size with the element size */ if (type != firm_unknown_type && get_type_size_bytes(type) != 1) { + size = get_Alloc_size(alloc); + ir_mode *mode = get_irn_mode(size); tarval *tv = new_tarval_from_long(get_type_size_bytes(type), - mode_Iu); - ir_node *cnst = new_rd_Const(dbg, irg, mode_Iu, tv); - ir_node *mul = new_rd_Mul(dbg, irg, block, get_Alloc_size(alloc), - cnst, mode_Iu); - size = mul; + mode); + ir_node *cnst = new_rd_Const(dbg, irg, mode, tv); + size = new_rd_Mul(dbg, irg, block, size, cnst, mode); } else { size = get_Alloc_size(alloc); } -- 2.20.1