Skip to content

Commit 1538fc3

Browse files
committed
[Index] Do not reload the stdlib when indexing system modules
1 parent 22779d4 commit 1538fc3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Index/IndexRecord.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,8 @@ emitDataForSwiftSerializedModule(ModuleDecl *module,
516516
// Reload resilient modules from swiftinterface to avoid indexing
517517
// internal details.
518518
bool skipIndexingModule = false;
519-
if (module->getResilienceStrategy() == ResilienceStrategy::Resilient) {
519+
if (module->getResilienceStrategy() == ResilienceStrategy::Resilient &&
520+
!module->isStdlibModule()) {
520521
module->getASTContext().setIgnoreAdjacentModules(true);
521522

522523
ImportPath::Module::Builder builder(module->getName());

0 commit comments

Comments
 (0)