summaryrefslogtreecommitdiffhomepage
path: root/ir/be/betranshlp.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2015-11-28 13:40:59 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2015-12-05 17:03:44 +0100
commit9c1234482cca3aaa0f37e0a4699184d9829510b4 (patch)
tree7e2518c2a91215dc42cef27a6c6b02cd809adb59 /ir/be/betranshlp.c
parenta7320c55714cbd7fb035c56f9a9afb59bfe545ea (diff)
ir: Change get_irn_in() so it returns the first operand, not the block, at index 0.
Except for two users, all users add 1 immediately anyway. Of the two exceptions one of them (in kill_unused_stacknodes()) is wrong, so this is now corrected. The other one is exchange(), which now just uses ->in, which is fine, since it handles node interna anyway.
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 b32090b..cba7d28 100644
--- a/ir/be/betranshlp.c
+++ b/ir/be/betranshlp.c
@@ -61,7 +61,7 @@ ir_node *be_transform_phi(ir_node *node, const arch_register_req_t *req)
/* phi nodes allow loops, so we use the old arguments for now
* and fix this later */
- ir_node **ins = get_irn_in(node)+1;
+ ir_node **ins = get_irn_in(node);
int arity = get_irn_arity(node);
ir_mode *mode = req->cls->mode;
ir_node *phi = new_ir_node(dbgi, irg, block, op_Phi, mode, arity, ins);