summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bespill.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/bespill.c
parent38249b0311df91904bb3a566a770efe650f40efc (diff)
Add ALLOCAN() and ALLOCANZ().
[r22985]
Diffstat (limited to 'ir/be/bespill.c')
-rw-r--r--ir/be/bespill.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir/be/bespill.c b/ir/be/bespill.c
index 04c8860..6df8bc7 100644
--- a/ir/be/bespill.c
+++ b/ir/be/bespill.c
@@ -483,7 +483,7 @@ static void spill_phi(spill_env_t *env, spill_info_t *spillinfo)
/* build a new PhiM */
arity = get_irn_arity(phi);
- ins = alloca(sizeof(ir_node*) * arity);
+ ins = ALLOCAN(ir_node*, arity);
unknown = new_r_Unknown(irg, mode_M);
for(i = 0; i < arity; ++i) {
ins[i] = unknown;
@@ -689,7 +689,7 @@ static ir_node *do_remat(spill_env_t *env, ir_node *spilled, ir_node *reloader)
bl = get_nodes_block(reloader);
}
- ins = alloca(get_irn_arity(spilled) * sizeof(ins[0]));
+ ins = ALLOCAN(ir_node*, get_irn_arity(spilled));
for(i = 0, arity = get_irn_arity(spilled); i < arity; ++i) {
ir_node *arg = get_irn_n(spilled, i);