[llvm] r297767 - [Support] Make the SystemZ bot happy by using make_error_code.

Juergen Ributzka via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 14 11:37:44 PDT 2017


Author: ributzka
Date: Tue Mar 14 13:37:44 2017
New Revision: 297767

URL: http://llvm.org/viewvc/llvm-project?rev=297767&view=rev
Log:
[Support] Make the SystemZ bot happy by using make_error_code.

This should fix the last issue on the SystemZ bot related to the broken symlink
test.

Modified:
    llvm/trunk/unittests/Support/Path.cpp

Modified: llvm/trunk/unittests/Support/Path.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/Path.cpp?rev=297767&r1=297766&r2=297767&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/Path.cpp (original)
+++ llvm/trunk/unittests/Support/Path.cpp Tue Mar 14 13:37:44 2017
@@ -825,7 +825,8 @@ TEST_F(FileSystemTest, BrokenSymlinkDire
     ASSERT_NO_ERROR(ec);
 
     fs::file_status status;
-    if (i->status(status) == std::errc::no_such_file_or_directory) {
+    if (i->status(status) ==
+        std::make_error_code(std::errc::no_such_file_or_directory)) {
       i.no_push();
       continue;
     }




More information about the llvm-commits mailing list