summaryrefslogtreecommitdiff
path: root/src/resolve/absolute.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-09-28 10:35:32 +0800
committerJohn Hodge <tpg@mutabah.net>2016-09-28 10:35:32 +0800
commite7bae8f3f2188c6b04e4f4d62e898275f072a6e3 (patch)
treed3bb27250ec99c65389da6a0852bf4fe3e2395c0 /src/resolve/absolute.cpp
parent9ba41a54e44ae2f107a8646364353b06a7776bb5 (diff)
downloadmrust-e7bae8f3f2188c6b04e4f4d62e898275f072a6e3.tar.gz
AST - Make anon modules `shared_ptr`s to handle case where a block is depeted
Diffstat (limited to 'src/resolve/absolute.cpp')
-rw-r--r--src/resolve/absolute.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resolve/absolute.cpp b/src/resolve/absolute.cpp
index c2e77678..ce9abd0a 100644
--- a/src/resolve/absolute.cpp
+++ b/src/resolve/absolute.cpp
@@ -994,7 +994,8 @@ void Resolve_Absolute_Path_BindAbsolute(Context& context, const Span& sp, Contex
ss >> c;
ss >> idx;
assert( idx < mod->anon_mods().size() );
- mod = mod->anon_mods()[idx];
+ assert( mod->anon_mods()[idx] );
+ mod = mod->anon_mods()[idx].get();
}
else
{