Fix build error on bots after 9f151df17800e1668c32e5314a290ae94c8f2dd3
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 2 Nov 2020 20:55:02 +0000 (15:55 -0500)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 2 Nov 2020 20:55:13 +0000 (15:55 -0500)
Attempt to fix build error on bots not seen locally.

clang/lib/Serialization/ASTReader.cpp

index c06dee3..fb39724 100644 (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();