[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.
llvm-svn: 297767
diff --git a/llvm/unittests/Support/Path.cpp b/llvm/unittests/Support/Path.cpp
index 1bcc274..b79586b 100644
--- a/llvm/unittests/Support/Path.cpp
+++ b/llvm/unittests/Support/Path.cpp
@@ -825,7 +825,8 @@
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;
}