aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index c2318e499..a54061cbd 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -2776,7 +2776,9 @@ Array<ImportPathItem> find_import_path(Checker *c, AstPackage *start, AstPackage
} else {
continue;
}
- GB_ASSERT(pkg != nullptr && pkg->scope != nullptr);
+ if (pkg == nullptr || pkg->scope == nullptr) {
+ continue;
+ }
if (pkg->kind == Package_Runtime) {
// NOTE(bill): Allow cyclic imports within the runtime package for the time being