diff options
author | Jan Svoboda <jan_svoboda@apple.com> | 2023-09-10 23:35:16 -0700 |
---|---|---|
committer | Jan Svoboda <jan_svoboda@apple.com> | 2023-09-28 14:50:00 -0700 |
commit | 3e9c36303ca72929275fb97767af43b3aa04cab1 (patch) | |
tree | 7ca26230714d5db2ec27d820e43c04aabcb17e21 /clang/lib/Basic/SourceManager.cpp | |
parent | de85739ded2edddc568f287d4f94c2dc1ab97dd7 (diff) | |
download | llvm-3e9c36303ca72929275fb97767af43b3aa04cab1.zip llvm-3e9c36303ca72929275fb97767af43b3aa04cab1.tar.gz llvm-3e9c36303ca72929275fb97767af43b3aa04cab1.tar.bz2 |
[clang] NFCI: Use `FileEntryRef` in `SourceManager::setFileIsTransient()`
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
-rw-r--r-- | clang/lib/Basic/SourceManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Basic/SourceManager.cpp b/clang/lib/Basic/SourceManager.cpp index 757b7ea..a630743 100644 --- a/clang/lib/Basic/SourceManager.cpp +++ b/clang/lib/Basic/SourceManager.cpp @@ -725,8 +725,8 @@ SourceManager::bypassFileContentsOverride(FileEntryRef File) { return BypassFile; } -void SourceManager::setFileIsTransient(const FileEntry *File) { - getOrCreateContentCache(File->getLastRef()).IsTransient = true; +void SourceManager::setFileIsTransient(FileEntryRef File) { + getOrCreateContentCache(File).IsTransient = true; } std::optional<StringRef> |