File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -516,6 +516,7 @@ emitDataForSwiftSerializedModule(ModuleDecl *module,
516
516
517
517
// Reload resilient modules from swiftinterface to avoid indexing
518
518
// internal details.
519
+ bool skipIndexingModule = false ;
519
520
if (module ->getResilienceStrategy () == ResilienceStrategy::Resilient) {
520
521
module ->getASTContext ().setIgnoreAdjacentModules (true );
521
522
@@ -526,7 +527,7 @@ emitDataForSwiftSerializedModule(ModuleDecl *module,
526
527
module = reloadedModule;
527
528
} else {
528
529
// If we can't rebuild from the swiftinterface, don't index this module.
529
- return true ;
530
+ skipIndexingModule = true ;
530
531
}
531
532
}
532
533
@@ -537,7 +538,9 @@ emitDataForSwiftSerializedModule(ModuleDecl *module,
537
538
// Pairs of (recordFile, groupName).
538
539
std::vector<std::pair<std::string, std::string>> records;
539
540
540
- if (!module ->isStdlibModule ()) {
541
+ if (skipIndexingModule) {
542
+ // Don't add anything to records.
543
+ } else if (!module ->isStdlibModule ()) {
541
544
std::string recordFile;
542
545
bool failed = false ;
543
546
auto consumer = makeRecordingConsumer (filename.str (), indexStorePath.str (),
You can’t perform that action at this time.
0 commit comments