[libcxx] r337685 - Cleanup unnecessary conversions in filesystem.
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 23 04:55:13 PDT 2018
Author: ericwf
Date: Mon Jul 23 04:55:13 2018
New Revision: 337685
URL: http://llvm.org/viewvc/llvm-project?rev=337685&view=rev
Log:
Cleanup unnecessary conversions in filesystem.
Modified:
libcxx/trunk/src/experimental/filesystem/operations.cpp
Modified: libcxx/trunk/src/experimental/filesystem/operations.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/experimental/filesystem/operations.cpp?rev=337685&r1=337684&r2=337685&view=diff
==============================================================================
--- libcxx/trunk/src/experimental/filesystem/operations.cpp (original)
+++ libcxx/trunk/src/experimental/filesystem/operations.cpp Mon Jul 23 04:55:13 2018
@@ -727,10 +727,10 @@ bool __copy_file(const path& from, const
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;
More information about the cfe-commits
mailing list