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

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 20 11:19:41 PDT 2017


Author: pcc
Date: Mon Mar 20 13:19:41 2017
New Revision: 298285

URL: http://llvm.org/viewvc/llvm-project?rev=298285&view=rev
Log:
Try using llvm::errc, should hopefully fix version mismatch problem on clang-s390x-linux bot.

Modified:
    llvm/trunk/lib/LTO/Caching.cpp

Modified: llvm/trunk/lib/LTO/Caching.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/LTO/Caching.cpp?rev=298285&r1=298284&r2=298285&view=diff
==============================================================================
--- llvm/trunk/lib/LTO/Caching.cpp (original)
+++ llvm/trunk/lib/LTO/Caching.cpp Mon Mar 20 13:19:41 2017
@@ -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::localCa
       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");
 




More information about the llvm-commits mailing list