summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bespill.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-11-25 17:05:24 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2012-11-25 17:06:53 +0100
commit0e5195711161c7a5d6b841cb614c10f58b216fa8 (patch)
tree26c5c146452f7c05ac3df7735c436be299d22e33 /ir/be/bespill.c
parent1413c4ff7c5ab24ee75242c2192d1c7a93a178b4 (diff)
rbitset: Let rbitset_alloca() return the new raw bitset.
Diffstat (limited to 'ir/be/bespill.c')
-rw-r--r--ir/be/bespill.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ir/be/bespill.c b/ir/be/bespill.c
index a6dbcbd..ff361f6 100644
--- a/ir/be/bespill.c
+++ b/ir/be/bespill.c
@@ -60,7 +60,6 @@ static void prepare_constr_insn(be_pre_spill_env_t *env, ir_node *node)
const ir_graph *irg = env->irg;
be_irg_t *birg = be_birg_from_irg(irg);
be_lv_t *lv = be_get_irg_liveness(irg);
- unsigned *tmp = NULL;
unsigned *def_constr = NULL;
int arity = get_irn_arity(node);
@@ -155,7 +154,7 @@ static void prepare_constr_insn(be_pre_spill_env_t *env, ir_node *node)
if (! (req_->type & arch_register_req_type_limited))
continue;
if (def_constr == NULL) {
- rbitset_alloca(def_constr, cls->n_regs);
+ def_constr = rbitset_alloca(cls->n_regs);
}
rbitset_or(def_constr, req_->limited, cls->n_regs);
);
@@ -169,7 +168,7 @@ static void prepare_constr_insn(be_pre_spill_env_t *env, ir_node *node)
* insert copies for all constrained arguments living through the node
* and being constrained to a register which also occurs in out constraints.
*/
- rbitset_alloca(tmp, cls->n_regs);
+ unsigned *const tmp = rbitset_alloca(cls->n_regs);
for (i = 0; i < arity; ++i) {
const arch_register_req_t *req;
ir_node *in;