aboutsummaryrefslogtreecommitdiffhomepage
path: root/ir
diff options
context:
space:
mode:
author lemon<lsof@mailbox.org>2026-01-08 12:21:40 +0100
committer lemon<lsof@mailbox.org>2026-01-08 12:21:40 +0100
commit2769a58ab256522eafec1f833676ceffb4baff24 (patch)
tree6c76f99d14598d7cf0a93a08a8dcd714752236f2 /ir
parent45036f2a6f612d8bbe071d332c5a0baf92783044 (diff)
codegen: eliminate redudant consecutive ret sequences
Diffstat (limited to 'ir')
-rw-r--r--ir/regalloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ir/regalloc.c b/ir/regalloc.c
index 14dfafc..9057d43 100644
--- a/ir/regalloc.c
+++ b/ir/regalloc.c
@@ -1197,6 +1197,7 @@ devirt(struct rega *ra, struct block *blk)
}
}
+ if (allnops) vfree(&blk->ins);
return allnops;
}