From 6d3203c11b969637094c8adc2c5a0e8380a77f0d Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 30 Dec 2018 15:40:45 +0000 Subject: Remove useless assertion in find_import_path --- src/checker.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/checker.cpp') 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 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 -- cgit v1.2.3