Skip to content

Commit d0635a6

Browse files
authored
Merge pull request swiftlang#63482 from DougGregor/source-file-lookup-cache-fix
2 parents 6b2809a + df8c61d commit d0635a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/AST/Module.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,9 @@ void ModuleDecl::updateSourceFileLocationMap() {
598598
std::sort(sourceFileLocationMap->allSourceFiles.begin(),
599599
sourceFileLocationMap->allSourceFiles.end(),
600600
SourceFileRangeComparison{&getASTContext().SourceMgr});
601+
602+
sourceFileLocationMap->numFiles = files.size();
603+
sourceFileLocationMap->numAuxiliaryFiles = AuxiliaryFiles.size();
601604
}
602605

603606
SourceFile *ModuleDecl::getSourceFileContainingLocation(SourceLoc loc) {

0 commit comments

Comments
 (0)