aboutsummaryrefslogtreecommitdiffhomepage
path: root/ir/simpl.c
diff options
context:
space:
mode:
Diffstat (limited to 'ir/simpl.c')
-rw-r--r--ir/simpl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ir/simpl.c b/ir/simpl.c
index fb89c07..7e6cfd0 100644
--- a/ir/simpl.c
+++ b/ir/simpl.c
@@ -70,7 +70,7 @@ simpl(struct function *fn)
FREQUIRE(FNUSE);
int inschange = 0,
blkchange = 0;
- struct block **jmpfinal = xcalloc(fn->nblk * sizeof *jmpfinal);
+ struct block **jmpfinal = allocz(fn->passarena, fn->nblk * sizeof *jmpfinal, 0);
struct block *blk = fn->entry;
do {
@@ -140,7 +140,6 @@ simpl(struct function *fn)
} while ((blk = blk->lnext) != fn->entry);
fillpreds(fn);
}
- free(jmpfinal);
}
/* vim:set ts=3 sw=3 expandtab: */