summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bevarargs.c
diff options
context:
space:
mode:
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>2015-12-02 14:27:14 +0100
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>2015-12-02 14:28:20 +0100
commitcb236975b4851cf1e58d5e60e799f390ef8d8888 (patch)
treede3334da0c3e7389384b3582e8cb4f7a5b9dc811 /ir/be/bevarargs.c
parent4a3627717892ec2e2d8f1befbad1d9046eab218f (diff)
Remove dead assignment.
Diffstat (limited to 'ir/be/bevarargs.c')
-rw-r--r--ir/be/bevarargs.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/ir/be/bevarargs.c b/ir/be/bevarargs.c
index 0f333f3..a8168ce 100644
--- a/ir/be/bevarargs.c
+++ b/ir/be/bevarargs.c
@@ -33,13 +33,11 @@ void be_default_lower_va_arg(ir_node *node)
ir_node *new_mem;
if (apmode != NULL) {
ir_node *const load = new_rd_Load(dbgi, block, node_mem, ap, apmode, aptype, cons_none);
- res = new_r_Proj(load, apmode, pn_Load_res);
+ res = new_r_Proj(load, apmode, pn_Load_res);
new_mem = new_r_Proj(load, mode_M,pn_Load_M);
} else {
- // aptype has no associated mode, so it is represented
- // as a pointer.
- apmode = mode_P;
- res = ap;
+ /* aptype has no associated mode, so it is represented as a pointer. */
+ res = ap;
new_mem = node_mem;
}