use a less obtuse api for vnew()

This commit is contained in:
Quentin Carbonneaux 2017-01-12 22:31:51 -05:00
parent e38da51c14
commit 2b4ece6f99
8 changed files with 29 additions and 21 deletions

2
ssa.c
View file

@ -52,7 +52,7 @@ filluse(Fn *fn)
tmp[t].phi = 0;
tmp[t].cls = 0;
if (tmp[t].use == 0)
tmp[t].use = vnew(0, sizeof(Use), alloc);
tmp[t].use = vnew(0, sizeof(Use), Pfn);
}
for (b=fn->start; b; b=b->link) {
for (p=b->phi; p; p=p->link) {