From ddbd42e66cc71b470730037d76f4f267e98d8d40 Mon Sep 17 00:00:00 2001 From: lemon Date: Mon, 13 Apr 2026 19:25:11 +0200 Subject: C99 complex types MVP Missing: static eval of complex values, Silly inefficient implementation of equality comparisons between them The whole thing is pretty inefficient without proper aggregate mem2reg anyway --- src/ir_dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ir_dump.c') diff --git a/src/ir_dump.c b/src/ir_dump.c index daa2b2f..d2f5e41 100644 --- a/src/ir_dump.c +++ b/src/ir_dump.c @@ -272,7 +272,7 @@ dumpblk(Function *fn, Block *blk) if (prinums) bfmt(out, "%-4d", blk->inumstart + 1 + i); bfmt(out, " %s ", jnames[blk->jmp.t]); - if (blk->jmp.t == Jret && 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) || iscomplex(fn->retty))) { /* un-lowered struct return */ dumpref(0, mktyperef(mkirtype(fn->retty))); bfmt(out, " "); -- cgit v1.2.3