Fix build error on bots after 9f151df178

Attempt to fix build error on bots not seen locally.
This commit is contained in:
Duncan P. N. Exon Smith 2020-11-02 15:55:02 -05:00
parent 773ad135a3
commit 5cb8d93205
1 changed files with 1 additions and 1 deletions
clang/lib/Serialization

View File

@ -3921,7 +3921,7 @@ ASTReader::ReadModuleMapFileBlock(RecordData &Record, ModuleFile &F,
// Don't emit module relocation error if we have -fno-validate-pch
if (!PP.getPreprocessorOpts().DisablePCHValidation && !ModMap) {
if ((ClientLoadCapabilities & ARR_OutOfDate) == 0) {
if (auto *ASTFE = M ? M->getASTFile() : nullptr) {
if (auto ASTFE = M ? M->getASTFile() : None) {
// This module was defined by an imported (explicit) module.
Diag(diag::err_module_file_conflict) << F.ModuleName << F.FileName
<< ASTFE->getName();