aboutsummaryrefslogtreecommitdiffhomepage
path: root/abi0.c
diff options
context:
space:
mode:
Diffstat (limited to 'abi0.c')
-rw-r--r--abi0.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/abi0.c b/abi0.c
index f04f4a5..4973b86 100644
--- a/abi0.c
+++ b/abi0.c
@@ -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, &param, 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);