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.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ir.c') diff --git a/src/ir.c b/src/ir.c index c32ff4d..4639b86 100644 --- a/src/ir.c +++ b/src/ir.c @@ -127,6 +127,7 @@ newxcon(const IRCon *con) IRType mkirtype(Type t) { + if (iscomplex(t)) t = complex2struct(t); if (t.t == TYVOID || isscalar(t)) return (IRType) { .cls = type2cls[scalartypet(t)] }; assert(isagg(t)); -- cgit v1.2.3