aboutsummaryrefslogtreecommitdiffhomepage
path: root/ir.c
diff options
context:
space:
mode:
Diffstat (limited to 'ir.c')
-rw-r--r--ir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ir.c b/ir.c
index 6c28977..f3b6766 100644
--- a/ir.c
+++ b/ir.c
@@ -110,7 +110,8 @@ addcon(const struct xcon *con)
union irtype
mkirtype(union type t)
{
- if (t.t == TYVOID || isscalar(t)) return (union irtype) { .cls = type2cls[t.t] };
+ if (t.t == TYVOID || isscalar(t))
+ return (union irtype) { .cls = type2cls[scalartypet(t)] };
assert(isagg(t));
return (union irtype) { .isagg = 1, .dat = t.dat };
}