aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorJan Svoboda <jan_svoboda@apple.com>2023-09-10 23:35:16 -0700
committerJan Svoboda <jan_svoboda@apple.com>2023-09-28 14:50:00 -0700
commit3e9c36303ca72929275fb97767af43b3aa04cab1 (patch)
tree7ca26230714d5db2ec27d820e43c04aabcb17e21 /clang/lib/Basic/SourceManager.cpp
parentde85739ded2edddc568f287d4f94c2dc1ab97dd7 (diff)
downloadllvm-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.cpp4
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>