From 39fa372721de2d280b0de410be3d635fad6263da Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Mon, 23 Jul 2018 11:55:13 +0000 Subject: [PATCH] Cleanup unnecessary conversions in filesystem. llvm-svn: 337685 --- libcxx/src/experimental/filesystem/operations.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcxx/src/experimental/filesystem/operations.cpp b/libcxx/src/experimental/filesystem/operations.cpp index 33583f45fc3b..dd805193b987 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;