summaryrefslogtreecommitdiff
path: root/src/mir/helpers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mir/helpers.cpp')
-rw-r--r--src/mir/helpers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir/helpers.cpp b/src/mir/helpers.cpp
index dc149cd2..027c68b7 100644
--- a/src/mir/helpers.cpp
+++ b/src/mir/helpers.cpp
@@ -206,7 +206,7 @@ const ::HIR::TypeRef& ::MIR::TypeResolve::get_lvalue_type(::HIR::TypeRef& tmp, c
MIR_ASSERT(*this, e.variant_index < unm.m_variants.size(), "Variant index out of range");
const auto& variant = unm.m_variants[e.variant_index];
const auto& var_ty = variant.second.ent;
-
+
if( monomorphise_type_needed(var_ty) ) {
tmp = monomorphise_type(sp, unm.m_params, te.path.m_data.as_Generic().m_params, variant.second.ent);
m_resolve.expand_associated_types(sp, tmp);