From 70f297bab7ae5d7291040b0305281a5fa8289f80 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Fri, 2 Sep 2022 12:08:52 +0200 Subject: fix case of Pool constants --- load.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'load.c') diff --git a/load.c b/load.c index 2e10a35..6c1494a 100644 --- a/load.c +++ b/load.c @@ -332,8 +332,8 @@ def(Slice sl, bits msk, Blk *b, Ins *i, Loc *il) p->to = r; p->cls = sl.cls; p->narg = b->npred; - p->arg = vnew(p->narg, sizeof p->arg[0], Pfn); - p->blk = vnew(p->narg, sizeof p->blk[0], Pfn); + p->arg = vnew(p->narg, sizeof p->arg[0], PFn); + p->blk = vnew(p->narg, sizeof p->blk[0], PFn); for (np=0; npnpred; ++np) { bp = b->pred[np]; if (!bp->s2 @@ -389,7 +389,7 @@ loadopt(Fn *fn) Loc l; curf = fn; - ilog = vnew(0, sizeof ilog[0], Pheap); + ilog = vnew(0, sizeof ilog[0], PHeap); nlog = 0; inum = 0; for (b=fn->start; b; b=b->link) @@ -404,7 +404,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), Pheap); + 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