summaryrefslogtreecommitdiff
path: root/src/trans/codegen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/trans/codegen.cpp')
-rw-r--r--src/trans/codegen.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/trans/codegen.cpp b/src/trans/codegen.cpp
index bda64d02..822d4264 100644
--- a/src/trans/codegen.cpp
+++ b/src/trans/codegen.cpp
@@ -197,6 +197,13 @@ void Trans_Codegen(const ::std::string& outfile, const ::HIR::Crate& crate, cons
tv.visit_type(pp.monomorph(crate, ty));
}
}
+ for(const auto& ent : list.m_statics)
+ {
+ assert(ent.second->ptr);
+ const auto& stat = *ent.second->ptr;
+
+ tv.visit_type( stat.m_type );
+ }
}
// 2. Emit function prototypes