aboutsummaryrefslogtreecommitdiff
path: root/src/cffc.hff
diff options
context:
space:
mode:
Diffstat (limited to 'src/cffc.hff')
-rw-r--r--src/cffc.hff3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cffc.hff b/src/cffc.hff
index d6de469..3e6a66f 100644
--- a/src/cffc.hff
+++ b/src/cffc.hff
@@ -467,10 +467,9 @@ fn mkarrtype(len i64, konst bool, child *const Type) *const Type {
});
}
fn mkptrtype(child *const Type) *const Type {
- let tmp typeof((Type{}).u) = :Ptr(child);
let ty = Type {
g_targ.ptrsize,
- .u: tmp
+ .u: :Ptr(child)
};
return interntype(&ty);
}