From 2b4ece6f99c18df090a127ec20c60ff05cbc0705 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Thu, 12 Jan 2017 22:31:51 -0500 Subject: use a less obtuse api for vnew() --- load.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'load.c') diff --git a/load.c b/load.c index 56204dc..be6b53d 100644 --- a/load.c +++ b/load.c @@ -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; nnblk; ++n) { b = fn->rpo[n]; for (; ist->bid == n && ist->isphi; ++ist) { -- cgit 1.4.1