summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bespilldaemel.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2008-10-18 12:56:50 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2008-10-18 12:56:50 +0200
commit429d687f06baeeb63d04750f846d39e55fb62343 (patch)
tree9f3c29609472b7cd4f54f5363c2172e7b0196587 /ir/be/bespilldaemel.c
parent38249b0311df91904bb3a566a770efe650f40efc (diff)
Add ALLOCAN() and ALLOCANZ().
[r22985]
Diffstat (limited to 'ir/be/bespilldaemel.c')
-rw-r--r--ir/be/bespilldaemel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/bespilldaemel.c b/ir/be/bespilldaemel.c
index be54899..047fab5 100644
--- a/ir/be/bespilldaemel.c
+++ b/ir/be/bespilldaemel.c
@@ -185,7 +185,7 @@ static void do_spilling(ir_nodeset_t *live_nodes, ir_node *node)
return;
DBG((dbg, LEVEL_2, "\tspills needed after %+F: %d\n", node, spills_needed));
- candidates = alloca(n_live_nodes * sizeof(candidates[0]));
+ candidates = ALLOCAN(spill_candidate_t, n_live_nodes);
/* construct array with spill candidates and calculate their costs */
i = 0;