diff options
| author | 2025-09-15 10:46:09 +0200 | |
|---|---|---|
| committer | 2025-09-15 10:46:09 +0200 | |
| commit | 7b1849402f33938aed8065ac9f4fab2ee8f22966 (patch) | |
| tree | 82e1b72a08560f6a9410b30431f77aa398f59069 /abi0.c | |
| parent | 474c9bc73c79ac7f366e590506718d571525ad5d (diff) | |
a little refactoring and cleanup
Diffstat (limited to 'abi0.c')
| -rw-r--r-- | abi0.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -270,7 +270,7 @@ abi0_call(struct function *fn, struct instr *ins, struct block *blk, int *curi) if (call->ret.isagg) call->ret = (union irtype){0}; call->vararg = vararg; - call->abiarg = alloccopy(&fn->arena, abiargs.p, abiargs.n * sizeof(struct abiarg), 0); + call->abiarg = alloccopy(fn->arena, abiargs.p, abiargs.n * sizeof(struct abiarg), 0); call->narg = abiargs.n; vfree(&abiargs); } @@ -309,7 +309,7 @@ abi0(struct function *fn) int ret = abiarg(&abiargs, &ni, &nf, &ns, pty); patchparam(fn, &istart, ¶m, pty.isagg ? pty.dat : -1, ret+!ret, &abiargs.p[first]); } - fn->abiarg = alloccopy(&fn->arena, abiargs.p, abiargs.n * sizeof *abiargs.p, 0); + fn->abiarg = alloccopy(fn->arena, abiargs.p, abiargs.n * sizeof *abiargs.p, 0); fn->nabiarg = abiargs.n; vfree(&abiargs); |