aboutsummaryrefslogtreecommitdiffhomepage
path: root/ir.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-09-15 10:46:09 +0200
committerlemon <lsof@mailbox.org>2025-09-15 10:46:09 +0200
commit7b1849402f33938aed8065ac9f4fab2ee8f22966 (patch)
tree82e1b72a08560f6a9410b30431f77aa398f59069 /ir.c
parent474c9bc73c79ac7f366e590506718d571525ad5d (diff)
a little refactoring and cleanup
Diffstat (limited to 'ir.c')
-rw-r--r--ir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir.c b/ir.c
index 4afd341..b1045b1 100644
--- a/ir.c
+++ b/ir.c
@@ -64,7 +64,7 @@ irinit(struct function *fn)
cls2siz[KI8] = cls2siz[KF8] = 8;
cls2siz[KPTR] = targ_primsizes[TYPTR];
}
- fn->entry = fn->curblk = alloc(&fn->arena, sizeof(struct block), 0);
+ fn->entry = fn->curblk = alloc(fn->arena, sizeof(struct block), 0);
fn->nblk = 1;
memset(fn->entry, 0, sizeof *fn->entry);
fn->entry->lprev = fn->entry->lnext = fn->entry;
@@ -233,7 +233,7 @@ delpred(struct block *blk, struct block *p)
struct block *
newblk(struct function *fn)
{
- struct block *blk = alloc(&fn->arena, sizeof(struct block), 0);
+ struct block *blk = alloc(fn->arena, sizeof(struct block), 0);
memset(blk, 0, sizeof *blk);
blk->id = -1;
return blk;