diff options
author | John Hodge <tpg@ucc.asn.au> | 2018-10-06 18:14:13 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2018-10-06 18:14:13 +0800 |
commit | 1382500b5fdba00568a86f0122bc2e78584dfb5d (patch) | |
tree | fc293328eea89d6639c4a36f268f5a1e1c826d6e /src/mir/cleanup.cpp | |
parent | 4a8198baca2cfcee17f83978ab71422a04d53b1a (diff) | |
parent | bd3d69813cc54439fdc0db33943fa1254db3df06 (diff) | |
download | mrust-1382500b5fdba00568a86f0122bc2e78584dfb5d.tar.gz |
Merge branch 'master' of https://github.com/thepowersgang/mrustc
Diffstat (limited to 'src/mir/cleanup.cpp')
-rw-r--r-- | src/mir/cleanup.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir/cleanup.cpp b/src/mir/cleanup.cpp index 78939f78..37d256df 100644 --- a/src/mir/cleanup.cpp +++ b/src/mir/cleanup.cpp @@ -1219,7 +1219,7 @@ void MIR_Cleanup(const StaticTraitResolve& resolve, const ::HIR::ItemPath& path, void MIR_CleanupCrate(::HIR::Crate& crate) { ::MIR::OuterVisitor ov { crate, [&](const auto& res, const auto& p, auto& expr_ptr, const auto& args, const auto& ty){ - MIR_Cleanup(res, p, *expr_ptr.m_mir, args, ty); + MIR_Cleanup(res, p, expr_ptr.get_mir_or_error_mut(Span()), args, ty); } }; ov.visit_crate(crate); } |