aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ir_simpl.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2026-03-23 19:20:32 +0100
committerlemon <lsof@mailbox.org>2026-03-23 19:20:32 +0100
commit8630aeb8b43c507cd00f5b091ddcee4def464f4d (patch)
tree1e39866c9f95e2f30903b96c7f255dd03a463d82 /src/ir_simpl.c
parent9ffc0e5a21817a45956bc35d5996bfae09c4d49e (diff)
IR: mark free'd instructions as such
That way they are not copied when inlining. Also rename ninstr -> ninstrtab. opnarg -> opnoper
Diffstat (limited to 'src/ir_simpl.c')
-rw-r--r--src/ir_simpl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir_simpl.c b/src/ir_simpl.c
index d353cfa..1a3eb76 100644
--- a/src/ir_simpl.c
+++ b/src/ir_simpl.c
@@ -84,7 +84,7 @@ divmodk(Instr *ins, Block *blk, int *curi)
static int
doins(Instr *ins, Block *blk, int *curi)
{
- int narg = opnarg[ins->op];
+ int narg = opnoper[ins->op];
if (oisarith(ins->op)) {
Ref r = narg == 1 ? irunop(NULL, ins->op, ins->cls, ins->l)
: irbinop(NULL, ins->op, ins->cls, ins->l, ins->r);