aboutsummaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorMichael Forney <[email protected]>2020-04-19 16:31:52 -0700
committerQuentin Carbonneaux <[email protected]>2020-08-06 09:51:12 +0200
commit9de57265ce8453de0f773c48550ca05460844dd1 (patch)
treec6950680b590eb1cb698bed97cc5ef20dda794fa /parse.c
parent190263f1b628ba3171309147120fd3ba0e370b42 (diff)
Use a dynamic array for phi arguments
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index c4c1fe6..95bcf45 100644
--- a/parse.c
+++ b/parse.c
@@ -673,7 +673,9 @@ Ins:
phi = alloc(sizeof *phi);
phi->to = r;
phi->cls = k;
+ phi->arg = vnew(i, sizeof arg[0], Pfn);
memcpy(phi->arg, arg, i * sizeof arg[0]);
+ phi->blk = vnew(i, sizeof blk[0], Pfn);
memcpy(phi->blk, blk, i * sizeof blk[0]);
phi->narg = i;
*plink = phi;