commit 5f39a368aca158e6d3e1f6c408c7b3b496805315
parent 851e79f9590b705a0fb168d16755caad03650348
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Fri, 10 Jul 2015 13:56:18 -0400
free old rpo information before overwriting
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/lisc/ssa.c b/lisc/ssa.c
@@ -61,6 +61,7 @@ fillrpo(Fn *f)
for (b=f->start; b; b=b->link)
b->rpo = -1;
n = rporec(f->start, f->nblk-1);
+ free(f->rpo);
f->rpo = alloc(n * sizeof(Blk*));
for (p=&f->start; *p;) {
b = *p;