diff options
author | John Hodge <tpg@mutabah.net> | 2016-12-07 07:28:39 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-12-07 07:28:39 +0800 |
commit | b32610b3d6e524d0294fdb80cf56a991e7a022e4 (patch) | |
tree | c4ec85ca5985bb94875a78a3a5a7b00dbb11668a /src/mir/helpers.cpp | |
parent | 4fcbd6a038e4ea0c4aaf6602dd0ea0c2f24d3ec0 (diff) | |
download | mrust-b32610b3d6e524d0294fdb80cf56a991e7a022e4.tar.gz |
MIR VTable - Fix incorrect vtable name
Diffstat (limited to 'src/mir/helpers.cpp')
-rw-r--r-- | src/mir/helpers.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir/helpers.cpp b/src/mir/helpers.cpp index e0721549..ba4f4ca1 100644 --- a/src/mir/helpers.cpp +++ b/src/mir/helpers.cpp @@ -85,7 +85,7 @@ const ::HIR::TypeRef& ::MIR::TypeResolve::get_lvalue_type(::HIR::TypeRef& tmp, c MIR_BUG(*this, "Field on unit-like struct - " << ty); ), (Tuple, - MIR_ASSERT(*this, e.field_index < se.size(), "Field index out of range in tuple-struct"); + MIR_ASSERT(*this, e.field_index < se.size(), "Field index out of range in tuple-struct " << te.path); const auto& fld = se[e.field_index]; if( monomorphise_type_needed(fld.ent) ) { tmp = monomorphise_type(sp, str.m_params, te.path.m_data.as_Generic().m_params, fld.ent); @@ -97,7 +97,7 @@ const ::HIR::TypeRef& ::MIR::TypeResolve::get_lvalue_type(::HIR::TypeRef& tmp, c } ), (Named, - MIR_ASSERT(*this, e.field_index < se.size(), "Field index out of range in struct"); + MIR_ASSERT(*this, e.field_index < se.size(), "Field index out of range in struct " << te.path); const auto& fld = se[e.field_index].second; if( monomorphise_type_needed(fld.ent) ) { tmp = monomorphise_type(sp, str.m_params, te.path.m_data.as_Generic().m_params, fld.ent); |