diff options
| -rw-r--r-- | llvm/lib/LTO/Caching.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/LTO/Caching.cpp b/llvm/lib/LTO/Caching.cpp index 00373ddd1c4..e32e46c4c3c 100644 --- a/llvm/lib/LTO/Caching.cpp +++ b/llvm/lib/LTO/Caching.cpp @@ -13,6 +13,7 @@ #include "llvm/LTO/Caching.h" #include "llvm/ADT/StringExtras.h" +#include "llvm/Support/Errc.h" #include "llvm/Support/FileSystem.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/Path.h" @@ -39,10 +40,7 @@ Expected<NativeObjectCache> lto::localCache(StringRef CacheDirectoryPath, return AddStreamFn(); } - // FIXME: Workaround for libstdc++ version mismatch bug, see D31063 review - // thread. - if ((std::errc)MBOrErr.getError().value() != - std::errc::no_such_file_or_directory) + if (MBOrErr.getError() != errc::no_such_file_or_directory) report_fatal_error(Twine("Failed to open cache file ") + EntryPath + ": " + MBOrErr.getError().message() + "\n"); |

