aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ir/abi0.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ir/abi0.c b/ir/abi0.c
index dc479bf..73b0fee 100644
--- a/ir/abi0.c
+++ b/ir/abi0.c
@@ -400,6 +400,7 @@ abi0(struct function *fn)
}
blk = fn->entry->lnext;
+ int id = 1;
do {
/* adjust vaargs and calls */
for (int iinstr = 0; iinstr < blk->ins.n; ++iinstr) {
@@ -431,9 +432,9 @@ abi0(struct function *fn)
else memset(blk->jmp.arg, 0, sizeof blk->jmp.arg);
}
}
+ blk->id = id++;
} while ((blk = blk->lnext) != fn->entry);
- sortrpo(fn);
if (ccopt.dbg.a) {
efmt("<< After abi0 >>\n");
irdump(fn);