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_dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ir_dump.c') diff --git a/src/ir_dump.c b/src/ir_dump.c index 89d34d4..4c18a70 100644 --- a/src/ir_dump.c +++ b/src/ir_dump.c @@ -210,7 +210,7 @@ dumpinst(const Instr *ins) if (oiscmp(ins->op)) bfmt(out, "%s ", clsname[ins->cls]); } - for (i = 0; i < opnarg[ins->op]; ++i) { + for (i = 0; i < opnoper[ins->op]; ++i) { if (i) bfmt(out, ", "); if (i == 1 && (ins->op == Ocall || ins->op == Ointrin)) { dumpcall(&calltab.p[ins->r.i]); -- cgit v1.2.3