aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-12-30 15:40:45 +0000
committergingerBill <bill@gingerbill.org>2018-12-30 15:40:45 +0000
commit6d3203c11b969637094c8adc2c5a0e8380a77f0d (patch)
treee22ccaab0c17b6c1eaa49ba5a16d565de8edf3d1 /src/checker.cpp
parent5ba3d908936e1b8070ede582d676035376c810a0 (diff)
Remove useless assertion in find_import_path
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