exits successfully lol

This commit is contained in:
2026-06-12 13:28:10 -06:00
parent 30e73fcba1
commit c051b402dd
11 changed files with 38 additions and 19 deletions

9
util.c
View File

@@ -261,6 +261,7 @@ igroup(Blk *b, Ins *i, Ins **i0, Ins **i1)
ib = b->ins;
ie = ib + b->nins;
switch (i->op) {
case Oblit0:
*i0 = i;
@@ -285,8 +286,12 @@ igroup(Blk *b, Ins *i, Ins **i0, Ins **i1)
*i0 = i;
for (; i<ie && i->op != Ocall; i++)
;
assert(i < ie);
*i1 = i + 1;
if (b->jmp.type == Jtail) {
*i1 = ie;
} else {
assert(i < ie);
*i1 = i + 1;
}
return;
case Osel1:
for (; i>ib && (i-1)->op == Osel1; i--)