aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2026-04-12 12:54:21 +0200
committerlemon <lsof@mailbox.org>2026-04-12 12:54:21 +0200
commitd23aeebff59a762b718fa46de96a8c2e23b6c3f7 (patch)
treefd14c856d14b76706b98aa13dca74341b35797f4
parent6adc43e4fc9de9cccee9b6be1ec0a8a1c7376d12 (diff)
ir_simpl: remove unused variable
-rw-r--r--src/ir_simpl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ir_simpl.c b/src/ir_simpl.c
index 4395c7d..3bd9ffc 100644
--- a/src/ir_simpl.c
+++ b/src/ir_simpl.c
@@ -214,8 +214,7 @@ void
simpl(Function *fn)
{
FREQUIRE(FNUSE);
- int inschange = 0,
- blkchange = 0;
+ int blkchange = 0;
Block **jmpfinal = allocz(fn->passarena, fn->nblk * sizeof *jmpfinal, 0);
Block *blk = fn->entry;
@@ -262,7 +261,7 @@ simpl(Function *fn)
Instr *ins = &instrtab[blk->ins.p[curi]];
if (ins->op != Onop) {
if (!(fn->prop & FNUSE)) filluses(fn);
- inschange += doins(ins, blk, &curi);
+ doins(ins, blk, &curi);
}
}