add a proper block deletion routine

This commit is contained in:
Quentin Carbonneaux 2016-04-09 14:21:56 -04:00
parent 081360df6a
commit 1e0f18e908
4 changed files with 27 additions and 2 deletions

2
ssa.c
View file

@ -161,8 +161,8 @@ fillrpo(Fn *f)
for (p=&f->start; *p;) {
b = *p;
if (b->id == -1) {
blkdel(b);
*p = b->link;
/* todo, free block */
} else {
b->id -= n;
f->rpo[b->id] = b;