diff options
author | Juergen Ributzka <juergen@apple.com> | 2017-03-14 18:37:44 +0000 |
---|---|---|
committer | Juergen Ributzka <juergen@apple.com> | 2017-03-14 18:37:44 +0000 |
commit | 118bb4599249fc4e324c2237c091d0a777564906 (patch) | |
tree | 535ce42cfe6bb6efd0ae1967756d3076401a0334 /llvm/unittests/Support/Path.cpp | |
parent | e30d3eb53e7fa3e51cd86c4dced0f8fe8f16d53a (diff) | |
download | bcm5719-llvm-118bb4599249fc4e324c2237c091d0a777564906.tar.gz bcm5719-llvm-118bb4599249fc4e324c2237c091d0a777564906.zip |
[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
Diffstat (limited to 'llvm/unittests/Support/Path.cpp')
-rw-r--r-- | llvm/unittests/Support/Path.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/unittests/Support/Path.cpp b/llvm/unittests/Support/Path.cpp index 1bcc274b218..b79586b9946 100644 --- a/llvm/unittests/Support/Path.cpp +++ b/llvm/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; } |