@@ -2568,7 +2568,7 @@ void ASTReader::markIdentifierUpToDate(const IdentifierInfo *II) {
25682568
25692569 // Update the generation for this identifier.
25702570 if (getContext ().getLangOpts ().Modules )
2571- IdentifierGeneration[II ] = getGenerationOrNull ();
2571+ IdentifierGeneration[II ] = getGeneration ();
25722572}
25732573
25742574MacroID ASTReader::ReadMacroID (ModuleFile &F, const RecordDataImpl &Record,
@@ -5177,10 +5177,11 @@ ASTReader::ReadASTCore(StringRef FileName,
51775177 unsigned ClientLoadCapabilities) {
51785178 ModuleFile *M;
51795179 std::string ErrorStr;
5180- ModuleManager::AddModuleResult AddResult =
5181- ModuleMgr.addModule (FileName, Type, ImportLoc, ImportedBy,
5182- getGenerationOrNull (), ExpectedSize, ExpectedModTime,
5183- ExpectedSignature, readASTFileSignature, M, ErrorStr);
5180+ ModuleManager::AddModuleResult AddResult
5181+ = ModuleMgr.addModule (FileName, Type, ImportLoc, ImportedBy,
5182+ getGeneration (), ExpectedSize, ExpectedModTime,
5183+ ExpectedSignature, readASTFileSignature,
5184+ M, ErrorStr);
51845185
51855186 switch (AddResult) {
51865187 case ModuleManager::AlreadyLoaded:
@@ -9462,7 +9463,7 @@ void ASTReader::ReadMethodPool(Selector Sel) {
94629463 // Get the selector generation and update it to the current generation.
94639464 unsigned &Generation = SelectorGeneration[Sel];
94649465 unsigned PriorGeneration = Generation;
9465- Generation = getGenerationOrNull ();
9466+ Generation = getGeneration ();
94669467 SelectorOutOfDate[Sel] = false ;
94679468
94689469 // Search for methods defined with this selector.
0 commit comments