1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Try using llvm::errc, should hopefully fix version mismatch problem on clang-s390x-linux bot.

llvm-svn: 298285
This commit is contained in:
Peter Collingbourne 2017-03-20 18:19:41 +00:00
parent 4a9fc70a61
commit ca555cea4b

View File

@ -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");