summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bevarargs.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/bevarargs.c
parent77c35e4aae47e4fcf7d125e3af4d51b4b0f874f1 (diff)
When making an 'Add', automatically infer its mode from its operands.
Diffstat (limited to 'ir/be/bevarargs.c')
-rw-r--r--ir/be/bevarargs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/bevarargs.c b/ir/be/bevarargs.c
index db47e3c..fc4d76e 100644
--- a/ir/be/bevarargs.c
+++ b/ir/be/bevarargs.c
@@ -46,7 +46,7 @@ void be_default_lower_va_arg(ir_node *node)
be_params->stack_param_align);
ir_mode *const offset_mode = get_reference_offset_mode(mode_P);
ir_node *const offset = new_r_Const_long(irg, offset_mode, round_up);
- ir_node *const new_ap = new_rd_Add(dbgi, block, ap, offset, mode_P);
+ ir_node *const new_ap = new_rd_Add(dbgi, block, ap, offset);
ir_node *const in[] = { new_mem, res, new_ap };
turn_into_tuple(node, ARRAY_SIZE(in), in);