]> granicus.if.org Git - llvm/commitdiff
[Support] Make the SystemZ bot happy by using make_error_code.
authorJuergen Ributzka <juergen@apple.com>
Tue, 14 Mar 2017 18:37:44 +0000 (18:37 +0000)
committerJuergen Ributzka <juergen@apple.com>
Tue, 14 Mar 2017 18:37:44 +0000 (18:37 +0000)
This should fix the last issue on the SystemZ bot related to the broken symlink
test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297767 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Support/Path.cpp

index 1bcc274b21802fc18e15d95ce26f870c4280956b..b79586b99465f6b8fa0b0bea278e0e667dd56e4f 100644 (file)
@@ -825,7 +825,8 @@ TEST_F(FileSystemTest, BrokenSymlinkDirectoryIteration) {
     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;
     }