Skip to content

Commit 45bf8e4

Browse files
committed
[clang] NFCI: Use FileEntryRef in ASTReader
1 parent 503e315 commit 45bf8e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Serialization/ASTReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5689,7 +5689,7 @@ llvm::Error ASTReader::ReadSubmoduleBlock(ModuleFile &F,
56895689
"too many submodules");
56905690

56915691
if (!ParentModule) {
5692-
if (const FileEntry *CurFile = CurrentModule->getASTFile()) {
5692+
if (OptionalFileEntryRef CurFile = CurrentModule->getASTFile()) {
56935693
// Don't emit module relocation error if we have -fno-validate-pch
56945694
if (!bool(PP.getPreprocessorOpts().DisablePCHOrModuleValidation &
56955695
DisableValidationForModuleKind::Module) &&

0 commit comments

Comments
 (0)