use a less obtuse api for vnew()
This commit is contained in:
parent
e38da51c14
commit
2b4ece6f99
8 changed files with 29 additions and 21 deletions
2
ssa.c
2
ssa.c
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue