aboutsummaryrefslogtreecommitdiffhomepage
path: root/ir
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2026-02-18 18:18:25 +0100
committerlemon <lsof@mailbox.org>2026-02-18 18:19:18 +0100
commit6f6c98879f2ff71f93891611e3475757b395f136 (patch)
treef447fc32447102bd00044aa1a84abd1252ff8cd4 /ir
parent3ac9b17e1aca31a2c01c0887272b50741d43ad76 (diff)
ir/dump: sanity check
Diffstat (limited to 'ir')
-rw-r--r--ir/dump.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ir/dump.c b/ir/dump.c
index f952292..cf8d788 100644
--- a/ir/dump.c
+++ b/ir/dump.c
@@ -296,6 +296,7 @@ irdump(struct function *fn)
numberinstrs(fn);
blk = fn->entry;
do {
+ assert(blk->lprev->lnext == blk);
dumpblk(fn, blk);
assert(blk->lnext != NULL);
} while ((blk = blk->lnext) != fn->entry);