From c4630f9d5b0e7380cb4b0fb2f5e28283eb3535a4 Mon Sep 17 00:00:00 2001 From: Juergen Ributzka Date: Tue, 14 Mar 2017 18:37:44 +0000 Subject: [PATCH] [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 --- unittests/Support/Path.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.50.1