File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
include/clang/Serialization Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2246,7 +2246,7 @@ class ASTReader
22462246
22472247 auto [Loc, ModuleFileIndex] = ReadUntranslatedSourceLocation (Raw, Seq);
22482248 ModuleFile *OwningModuleFile =
2249- ModuleFileIndex == 0 ? &MF : MF.DependentModules [ModuleFileIndex - 1 ];
2249+ ModuleFileIndex == 0 ? &MF : MF.TransitiveImports [ModuleFileIndex - 1 ];
22502250
22512251 assert (!SourceMgr.isLoadedSourceLocation (Loc) &&
22522252 " Run out source location space" );
Original file line number Diff line number Diff line change @@ -513,11 +513,11 @@ class ModuleFile {
513513
514514 // / List of modules which this modules dependent on. Different
515515 // / from `Imports`, this includes indirectly imported modules too.
516- // / The order of DependentModules is significant. It should keep
516+ // / The order of TransitiveImports is significant. It should keep
517517 // / the same order with that module file manager when we write
518518 // / the current module file. The value of the member will be initialized
519519 // / in `ASTReader::ReadModuleOffsetMap`.
520- llvm::SmallVector<ModuleFile *, 16 > DependentModules ;
520+ llvm::SmallVector<ModuleFile *, 16 > TransitiveImports ;
521521
522522 // / Determine whether this module was directly imported at
523523 // / any point during translation.
Original file line number Diff line number Diff line change @@ -4059,7 +4059,7 @@ void ASTReader::ReadModuleOffsetMap(ModuleFile &F) const {
40594059 RemapBuilder DeclRemap (F.DeclRemap );
40604060 RemapBuilder TypeRemap (F.TypeRemap );
40614061
4062- auto &ImportedModuleVector = F.DependentModules ;
4062+ auto &ImportedModuleVector = F.TransitiveImports ;
40634063 assert (ImportedModuleVector.empty ());
40644064
40654065 while (Data < DataEnd) {
You can’t perform that action at this time.
0 commit comments