diff options
| author | Quentin Carbonneaux <[email protected]> | 2017-01-12 22:31:51 -0500 |
|---|---|---|
| committer | Quentin Carbonneaux <[email protected]> | 2017-01-12 22:31:51 -0500 |
| commit | 2b4ece6f99c18df090a127ec20c60ff05cbc0705 (patch) | |
| tree | e8ef009433b47325520cd6b7f429409cccedce6b /load.c | |
| parent | e38da51c14d9eaf8c53b58b3d2e33d7b37768f29 (diff) | |
use a less obtuse api for vnew()
Diffstat (limited to 'load.c')
| -rw-r--r-- | load.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -336,7 +336,7 @@ loadopt(Fn *fn) Loc l; curf = fn; - ilog = vnew(0, sizeof ilog[0], emalloc); + ilog = vnew(0, sizeof ilog[0], Pheap); nlog = 0; inum = 0; for (b=fn->start; b; b=b->link) @@ -351,7 +351,7 @@ loadopt(Fn *fn) qsort(ilog, nlog, sizeof ilog[0], icmp); vgrow(&ilog, nlog+1); ilog[nlog].bid = fn->nblk; /* add a sentinel */ - ib = vnew(0, sizeof(Ins), emalloc); + ib = vnew(0, sizeof(Ins), Pheap); for (ist=ilog, n=0; n<fn->nblk; ++n) { b = fn->rpo[n]; for (; ist->bid == n && ist->isphi; ++ist) { |
