diff options
author | John Hodge <tpg@mutabah.net> | 2018-03-07 22:07:38 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2018-03-07 22:07:38 +0800 |
commit | ec2f3fd6e23540e01d51307c9078aa087c090740 (patch) | |
tree | 0cac524044d9c2d6ccde629a9585fd60e39446ef /src/mir/cleanup.cpp | |
parent | 692acd88a7929ea46e57452c7af96b06142f8077 (diff) | |
download | mrust-ec2f3fd6e23540e01d51307c9078aa087c090740.tar.gz |
VTables - Rename vtable static to have the # at the end (helps parsing in mmir)
Diffstat (limited to 'src/mir/cleanup.cpp')
-rw-r--r-- | src/mir/cleanup.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir/cleanup.cpp b/src/mir/cleanup.cpp index fef5d350..019a0796 100644 --- a/src/mir/cleanup.cpp +++ b/src/mir/cleanup.cpp @@ -376,7 +376,7 @@ const ::HIR::Literal* MIR_Cleanup_GetConstant(const Span& sp, const StaticTraitR ::HIR::TypeRef tmp; const auto& ty = state.get_static_type(tmp, path); - auto vtable_path = ::HIR::Path(&ty == &tmp ? mv$(tmp) : ty.clone(), tep->m_trait.m_path.clone(), "#vtable"); + auto vtable_path = ::HIR::Path(&ty == &tmp ? mv$(tmp) : ty.clone(), tep->m_trait.m_path.clone(), "vtable#"); auto vtable_val = ::MIR::Param( ::MIR::Constant::make_ItemAddr(mv$(vtable_path)) ); @@ -678,7 +678,7 @@ bool MIR_Cleanup_Unsize_GetMetadata(const ::MIR::TypeResolve& state, MirMutator& { MIR_ASSERT(state, state.m_resolve.type_is_sized(state.sp, src_ty), "Attempting to get vtable for unsized type - " << src_ty); - ::HIR::Path vtable { src_ty.clone(), trait_path.m_path.clone(), "#vtable" }; + ::HIR::Path vtable { src_ty.clone(), trait_path.m_path.clone(), "vtable#" }; out_meta_val = ::MIR::Constant::make_ItemAddr(mv$(vtable)); } } |