diff options
| author | 2025-09-15 10:46:09 +0200 | |
|---|---|---|
| committer | 2025-09-15 10:46:09 +0200 | |
| commit | 7b1849402f33938aed8065ac9f4fab2ee8f22966 (patch) | |
| tree | 82e1b72a08560f6a9410b30431f77aa398f59069 /ir.c | |
| parent | 474c9bc73c79ac7f366e590506718d571525ad5d (diff) | |
a little refactoring and cleanup
Diffstat (limited to 'ir.c')
| -rw-r--r-- | ir.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |