diff options
| author | gingerBill <bill@gingerbill.org> | 2018-12-30 15:40:45 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-12-30 15:40:45 +0000 |
| commit | 6d3203c11b969637094c8adc2c5a0e8380a77f0d (patch) | |
| tree | e22ccaab0c17b6c1eaa49ba5a16d565de8edf3d1 /src/checker.cpp | |
| parent | 5ba3d908936e1b8070ede582d676035376c810a0 (diff) | |
Remove useless assertion in find_import_path
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 4 |
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 |