diff options
author | John Hodge <tpg@ucc.asn.au> | 2019-04-25 13:56:11 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2019-04-25 13:56:11 +0800 |
commit | 967a76859749ecb602cd2c343e28888514f827bd (patch) | |
tree | 4efa0535a2658f2c21a627fbe1e38c2e2fcbea4b /src/mir/mir_builder.cpp | |
parent | 7a1a685ef5e0d831f6762f1bc9171de66d933e32 (diff) | |
download | mrust-967a76859749ecb602cd2c343e28888514f827bd.tar.gz |
MIR - Reduce size of LValue::Static by putting the HIR::Path behind a pointer
Diffstat (limited to 'src/mir/mir_builder.cpp')
-rw-r--r-- | src/mir/mir_builder.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mir/mir_builder.cpp b/src/mir/mir_builder.cpp index ac1b7650..81816535 100644 --- a/src/mir/mir_builder.cpp +++ b/src/mir/mir_builder.cpp @@ -1622,20 +1622,20 @@ void MirBuilder::with_val_type(const Span& sp, const ::MIR::LValue& val, ::std:: cb( m_output.locals.at(e) ); ), (Static, - TU_MATCHA( (e.m_data), (pe), + TU_MATCHA( (e->m_data), (pe), (Generic, ASSERT_BUG(sp, pe.m_params.m_types.empty(), "Path params on static"); const auto& s = m_resolve.m_crate.get_static_by_path(sp, pe.m_path); cb( s.m_type ); ), (UfcsKnown, - TODO(sp, "Static - UfcsKnown - " << e); + TODO(sp, "Static - UfcsKnown - " << *e); ), (UfcsUnknown, - BUG(sp, "Encountered UfcsUnknown in Static - " << e); + BUG(sp, "Encountered UfcsUnknown in Static - " << *e); ), (UfcsInherent, - TODO(sp, "Static - UfcsInherent - " << e); + TODO(sp, "Static - UfcsInherent - " << *e); ) ) ), |