From d786047583dda17241615b40d8ef8a3abf1e1575 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Mon, 20 Mar 2017 18:19:41 +0000 Subject: Try using llvm::errc, should hopefully fix version mismatch problem on clang-s390x-linux bot. llvm-svn: 298285 --- llvm/lib/LTO/Caching.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'llvm/lib/LTO/Caching.cpp') 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 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"); -- cgit v1.2.3