diff options
author | Jan Svoboda <jan_svoboda@apple.com> | 2023-09-10 23:18:15 -0700 |
---|---|---|
committer | Jan Svoboda <jan_svoboda@apple.com> | 2023-09-29 09:07:13 -0700 |
commit | b0abc9dd44271815b3ae1ad5d009a1ca83e0fdca (patch) | |
tree | 1d792ff9d436b1e001cc1ba814af46b7e8d78efa /clang/lib/Lex/Preprocessor.cpp | |
parent | c718336c4cb14e27aa88054cc30ee0c2fc6505d1 (diff) | |
download | llvm-b0abc9dd44271815b3ae1ad5d009a1ca83e0fdca.zip llvm-b0abc9dd44271815b3ae1ad5d009a1ca83e0fdca.tar.gz llvm-b0abc9dd44271815b3ae1ad5d009a1ca83e0fdca.tar.bz2 |
[clang] NFCI: Use `FileEntryRef` in `ASTReader::GetHeaderFileInfo()`
This is the `ASTReader` counterpart to PR #67383.
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
-rw-r--r-- | clang/lib/Lex/Preprocessor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp index 6dfe7c0..95e6a7a 100644 --- a/clang/lib/Lex/Preprocessor.cpp +++ b/clang/lib/Lex/Preprocessor.cpp @@ -562,8 +562,8 @@ void Preprocessor::EnterMainSourceFile() { // Tell the header info that the main file was entered. If the file is later // #imported, it won't be re-entered. - if (const FileEntry *FE = SourceMgr.getFileEntryForID(MainFileID)) - markIncluded(FE); + if (OptionalFileEntryRef FE = SourceMgr.getFileEntryRefForID(MainFileID)) + markIncluded(*FE); } // Preprocess Predefines to populate the initial preprocessor state. |