summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bespillslots.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/bespillslots.c
parent1413c4ff7c5ab24ee75242c2192d1c7a93a178b4 (diff)
rbitset: Let rbitset_alloca() return the new raw bitset.
Diffstat (limited to 'ir/be/bespillslots.c')
-rw-r--r--ir/be/bespillslots.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ir/be/bespillslots.c b/ir/be/bespillslots.c
index ebbd0bf..ff2df9f 100644
--- a/ir/be/bespillslots.c
+++ b/ir/be/bespillslots.c
@@ -677,11 +677,9 @@ static unsigned count_spillslots(const be_fec_env_t *env)
{
size_t spillcount = ARR_LEN(env->spills);
unsigned slotcount = 0;
- unsigned *counted;
size_t s;
- rbitset_alloca(counted, spillcount);
-
+ unsigned *const counted = rbitset_alloca(spillcount);
for (s = 0; s < spillcount; ++s) {
spill_t *spill = env->spills[s];
int spillslot = spill->spillslot;