summaryrefslogtreecommitdiffhomepage
path: root/ir/be/benode.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2015-09-06 20:17:30 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2015-09-08 12:23:08 +0200
commit02d2feeeaf2c5b60ae82c29fd8c4d940b49361fe (patch)
treeb0105590024195cda618b63d892d475d886f36bc /ir/be/benode.c
parent2debf302339ad3540c7053fce41ce38cf3064a5d (diff)
be: Give the operand of be_IncSP a symbolic name.
Diffstat (limited to 'ir/be/benode.c')
-rw-r--r--ir/be/benode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir/be/benode.c b/ir/be/benode.c
index f7a6da8..a6b2277 100644
--- a/ir/be/benode.c
+++ b/ir/be/benode.c
@@ -373,13 +373,13 @@ const arch_register_req_t *be_create_reg_req(struct obstack *obst,
ir_node *be_get_IncSP_pred(ir_node *irn)
{
assert(be_is_IncSP(irn));
- return get_irn_n(irn, 0);
+ return get_irn_n(irn, n_be_IncSP_pred);
}
void be_set_IncSP_pred(ir_node *incsp, ir_node *pred)
{
assert(be_is_IncSP(incsp));
- set_irn_n(incsp, 0, pred);
+ set_irn_n(incsp, n_be_IncSP_pred, pred);
}
void be_set_IncSP_offset(ir_node *irn, int offset)