summaryrefslogtreecommitdiff
path: root/src/resolve/index.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resolve/index.cpp')
-rw-r--r--src/resolve/index.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/resolve/index.cpp b/src/resolve/index.cpp
index 754b6eea..f712bd46 100644
--- a/src/resolve/index.cpp
+++ b/src/resolve/index.cpp
@@ -245,7 +245,9 @@ void Resolve_Index_Module_Base(const AST::Crate& crate, AST::Module& mod)
}
for(auto& mp : mod.anon_mods())
{
- Resolve_Index_Module_Base(crate, *mp);
+ if( mp ) {
+ Resolve_Index_Module_Base(crate, *mp);
+ }
}
}
@@ -459,7 +461,9 @@ void Resolve_Index_Module_Wildcard(AST::Crate& crate, AST::Module& mod, bool han
}
for(auto& mp : mod.anon_mods())
{
- Resolve_Index_Module_Wildcard(crate, *mp, handle_pub);
+ if( mp ) {
+ Resolve_Index_Module_Wildcard(crate, *mp, handle_pub);
+ }
}
}