From 8630aeb8b43c507cd00f5b091ddcee4def464f4d Mon Sep 17 00:00:00 2001 From: lemon Date: Mon, 23 Mar 2026 19:20:32 +0100 Subject: IR: mark free'd instructions as such That way they are not copied when inlining. Also rename ninstr -> ninstrtab. opnarg -> opnoper --- src/ir_simpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ir_simpl.c') 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); -- cgit v1.2.3