diff options
author | Jan Svoboda <jan_svoboda@apple.com> | 2023-09-06 13:20:46 -0700 |
---|---|---|
committer | Jan Svoboda <jan_svoboda@apple.com> | 2023-09-06 13:23:23 -0700 |
commit | 0a9611fd8d8867ec5f2ad4612f7b9cc7e534efe3 (patch) | |
tree | 262e0661e9067b0607113c77f929014c35582f0d /clang/lib/Basic/SourceManager.cpp | |
parent | 8d933ea5ac12cf706ebf818e8720f34660c79797 (diff) | |
download | llvm-0a9611fd8d8867ec5f2ad4612f7b9cc7e534efe3.zip llvm-0a9611fd8d8867ec5f2ad4612f7b9cc7e534efe3.tar.gz llvm-0a9611fd8d8867ec5f2ad4612f7b9cc7e534efe3.tar.bz2 |
Revert "[clang] NFCI: Adopt `SourceManager::getFileEntryRefForID()`"
This reverts commit ddbcc10b9e26b18f6a70e23d0611b9da75ffa52f.
The 'clang-tidy/checkers/misc/header-include-cycle.cpp' test started failing on Windows: https://lab.llvm.org/buildbot/#/builders/216/builds/26855.
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
-rw-r--r-- | clang/lib/Basic/SourceManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Basic/SourceManager.cpp b/clang/lib/Basic/SourceManager.cpp index b8a9fb7..6fa802a 100644 --- a/clang/lib/Basic/SourceManager.cpp +++ b/clang/lib/Basic/SourceManager.cpp @@ -1018,7 +1018,7 @@ SourceLocation SourceManager::getImmediateSpellingLoc(SourceLocation Loc) const{ /// Return the filename of the file containing a SourceLocation. StringRef SourceManager::getFilename(SourceLocation SpellingLoc) const { - if (OptionalFileEntryRef F = getFileEntryRefForID(getFileID(SpellingLoc))) + if (const FileEntry *F = getFileEntryForID(getFileID(SpellingLoc))) return F->getName(); return StringRef(); } |