diff options
author | Eric Fiselier <eric@efcs.ca> | 2018-07-23 11:55:13 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2018-07-23 11:55:13 +0000 |
commit | 39fa372721de2d280b0de410be3d635fad6263da (patch) | |
tree | cc85234bffdd01c07db2e49c8e01be33f126c071 /libcxx/src/experimental/filesystem/operations.cpp | |
parent | c48dba4c6d879ded1fb2663ef568515af3b11080 (diff) | |
download | bcm5719-llvm-39fa372721de2d280b0de410be3d635fad6263da.tar.gz bcm5719-llvm-39fa372721de2d280b0de410be3d635fad6263da.zip |
Cleanup unnecessary conversions in filesystem.
llvm-svn: 337685
Diffstat (limited to 'libcxx/src/experimental/filesystem/operations.cpp')
-rw-r--r-- | libcxx/src/experimental/filesystem/operations.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/src/experimental/filesystem/operations.cpp b/libcxx/src/experimental/filesystem/operations.cpp index 33583f45fc3..dd805193b98 100644 --- a/libcxx/src/experimental/filesystem/operations.cpp +++ b/libcxx/src/experimental/filesystem/operations.cpp @@ -727,10 +727,10 @@ bool __copy_file(const path& from, const path& to, copy_options options, const bool to_exists = exists(to_st); if (to_exists && !is_regular_file(to_st)) - return err.report(make_error_code(errc::not_supported)); + return err.report(errc::not_supported); if (to_exists && detail::stat_equivalent(from_stat, to_stat_path)) - return err.report(make_error_code(errc::file_exists)); + return err.report(errc::file_exists); if (to_exists && skip_existing) return false; |