summaryrefslogtreecommitdiffhomepage
path: root/ir/be/betranshlp.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-06-07 08:05:54 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2016-06-07 08:05:54 +0200
commitd4e62cfa05163b80b782490cdf51fbf5772dd50a (patch)
treecd73737cd44e66719a09668adb6bc1dd4a714008 /ir/be/betranshlp.c
parent77c35e4aae47e4fcf7d125e3af4d51b4b0f874f1 (diff)
When making an 'Add', automatically infer its mode from its operands.
Diffstat (limited to 'ir/be/betranshlp.c')
-rw-r--r--ir/be/betranshlp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/betranshlp.c b/ir/be/betranshlp.c
index 6cf7c5e..26f6615 100644
--- a/ir/be/betranshlp.c
+++ b/ir/be/betranshlp.c
@@ -740,7 +740,7 @@ void be_add_parameter_entity_stores_list(ir_graph *irg, unsigned n_entities,
ir_mode *mode_ref = get_irn_mode(addr);
ir_mode *mode_offs = get_reference_offset_mode(mode_ref);
ir_node *cnst = new_r_Const_long(irg, mode_offs, offset);
- ir_node *next_addr = new_r_Add(start_block, addr, cnst, mode_ref);
+ ir_node *next_addr = new_r_Add(start_block, addr, cnst);
ir_node *store1 = new_r_Store(start_block, mem0, next_addr, val1,
tp, cons_none);
mem = new_r_Proj(store1, mode_M, pn_Store_M);