aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-11-12 18:01:22 +0100
committerlemon <lsof@mailbox.org>2025-11-12 18:03:51 +0100
commit85ddd0c5aa6e2e3306ca6574d83657466ba7aabd (patch)
tree2e198f1ecf0c310fbd8062624f40dc417d327ab3
parent65244dba4adf96c0c0483b30f3a36089d41bcb67 (diff)
irdump: don't print fn ret type in non return branches
-rw-r--r--ir/dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/dump.c b/ir/dump.c
index ddde7a3..f261150 100644
--- a/ir/dump.c
+++ b/ir/dump.c
@@ -199,7 +199,7 @@ dumpblk(struct function *fn, struct block *blk)
dumpinst(&instrtab[blk->ins.p[i]]);
}
efmt("%-4d %s ", blk->inumstart + 1 + i, jnames[blk->jmp.t]);
- if (blk->jmp.arg[0].bits && !fn->nabiret && isagg(fn->retty)) {
+ if (blk->jmp.t == Jret && blk->jmp.arg[0].bits && !fn->nabiret && isagg(fn->retty)) {
/* un-lowered struct return */
dumpref(0, mktyperef(mkirtype(fn->retty)));
efmt(" ");