From: Juergen Ributzka Date: Tue, 14 Mar 2017 18:37:44 +0000 (+0000) Subject: [Support] Make the SystemZ bot happy by using make_error_code. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c4630f9d5b0e7380cb4b0fb2f5e28283eb3535a4;p=llvm [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297767 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/Support/Path.cpp b/unittests/Support/Path.cpp index 1bcc274b218..b79586b9946 100644 --- a/unittests/Support/Path.cpp +++ b/unittests/Support/Path.cpp @@ -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; }