summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bespill.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-11-28 12:55:17 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2012-11-28 12:55:17 +0100
commit7e447b3efcd7b0e79c6746da340416206331d18d (patch)
treeb02dd25912f8e7239c5ecd8de5dd515657cd6e8b /ir/be/bespill.c
parente882b686518c16d814ee7c317f59b686b1cb5d08 (diff)
bearch: Make the register requirements an output parameter of be_foreach_definition().
Diffstat (limited to 'ir/be/bespill.c')
-rw-r--r--ir/be/bespill.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ir/be/bespill.c b/ir/be/bespill.c
index 5acc278..419e8ef 100644
--- a/ir/be/bespill.c
+++ b/ir/be/bespill.c
@@ -135,14 +135,14 @@ static void prepare_constr_insn(be_pre_spill_env_t *env, ir_node *node)
);
/* collect all registers occurring in out constraints. */
- be_foreach_definition(node, cls, def,
+ be_foreach_definition(node, cls, def, req,
(void)def;
- if (!arch_register_req_is(req_, limited))
+ if (!arch_register_req_is(req, limited))
continue;
if (def_constr == NULL) {
def_constr = rbitset_alloca(cls->n_regs);
}
- rbitset_or(def_constr, req_->limited, cls->n_regs);
+ rbitset_or(def_constr, req->limited, cls->n_regs);
);
/* no output constraints => we're good */