aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ir.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir.c')
-rw-r--r--src/ir.c1
1 files changed, 1 insertions, 0 deletions
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));