summaryrefslogtreecommitdiffhomepage
path: root/ir/lower
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-06-07 08:02:13 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2016-06-07 08:02:13 +0200
commit550c63dba8af3cf3092d7aafc2a19359990da816 (patch)
tree0f30d1b6e7bba4ce957e669c582c3ca8b778c86f /ir/lower
parent479292055589217d5e444b6ef307cd3021f47650 (diff)
When making a 'Mul', automatically infer its mode from its left operand.
Diffstat (limited to 'ir/lower')
-rw-r--r--ir/lower/lower_hl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/lower/lower_hl.c b/ir/lower/lower_hl.c
index 24a50ee..5b4d05d 100644
--- a/ir/lower/lower_hl.c
+++ b/ir/lower/lower_hl.c
@@ -47,7 +47,7 @@ static void lower_sel(ir_node *sel)
ir_graph *const irg = get_irn_irg(sel);
ir_node *const el_size = new_rd_Const_long(dbg, irg, offset_mode,
element_size);
- scaled_index = new_rd_Mul(dbg, bl, idx_conv, el_size, offset_mode);
+ scaled_index = new_rd_Mul(dbg, bl, idx_conv, el_size);
}
newn = new_rd_Add(dbg, bl, ptr, scaled_index, mode);
}