diff options
author | Jan Svoboda <jan_svoboda@apple.com> | 2023-02-06 11:39:40 -0800 |
---|---|---|
committer | Jan Svoboda <jan_svoboda@apple.com> | 2023-02-07 09:27:24 -0800 |
commit | 5e14a48463b4c3eb3f36eeef30dee7312f9127da (patch) | |
tree | e778569cf940798d353a5f1da4ae2edbe8f3fffa /clang/lib/Basic/FileManager.cpp | |
parent | 152f2914607ffe632202ee660208d6dfba6c8870 (diff) | |
download | llvm-5e14a48463b4c3eb3f36eeef30dee7312f9127da.zip llvm-5e14a48463b4c3eb3f36eeef30dee7312f9127da.tar.gz llvm-5e14a48463b4c3eb3f36eeef30dee7312f9127da.tar.bz2 |
[clang] NFC: Remove GCC 5.1 workaround in FileEntry
We no longer support GCC 5.1 (D122976), so let's remove the workaround in FileEntry.
Reviewed By: benlangmuir
Differential Revision: https://reviews.llvm.org/D143427
Diffstat (limited to 'clang/lib/Basic/FileManager.cpp')
-rw-r--r-- | clang/lib/Basic/FileManager.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Basic/FileManager.cpp b/clang/lib/Basic/FileManager.cpp index e8d0f20..7d6fc47 100644 --- a/clang/lib/Basic/FileManager.cpp +++ b/clang/lib/Basic/FileManager.cpp @@ -403,8 +403,7 @@ FileEntryRef FileManager::getVirtualFileRef(StringRef Filename, off_t Size, FileEntryRef::MapValue Value = *NamedFileEnt.second; if (LLVM_LIKELY(Value.V.is<FileEntry *>())) return FileEntryRef(NamedFileEnt); - return FileEntryRef(*reinterpret_cast<const FileEntryRef::MapEntry *>( - Value.V.get<const void *>())); + return FileEntryRef(*Value.V.get<const FileEntryRef::MapEntry *>()); } // We've not seen this before, or the file is cached as non-existent. |