[libcxx] r337517 - cleanup test assertion inside library
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 19 18:25:06 PDT 2018
Author: ericwf
Date: Thu Jul 19 18:25:06 2018
New Revision: 337517
URL: http://llvm.org/viewvc/llvm-project?rev=337517&view=rev
Log:
cleanup test assertion inside library
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=337517&r1=337516&r2=337517&view=diff
==============================================================================
--- libcxx/trunk/src/experimental/filesystem/operations.cpp (original)
+++ libcxx/trunk/src/experimental/filesystem/operations.cpp Thu Jul 19 18:25:06 2018
@@ -25,11 +25,6 @@
#include <fcntl.h> /* values for fchmodat */
#include <experimental/filesystem>
-#ifdef NDEBUG
-#undef NDEBUG
-#endif
-#include <cassert>
-
_LIBCPP_BEGIN_NAMESPACE_EXPERIMENTAL_FILESYSTEM
filesystem_error::~filesystem_error() {}
@@ -298,7 +293,6 @@ file_status create_file_status(std::erro
struct ::stat& path_stat, std::error_code* ec) {
if (ec)
*ec = m_ec;
- // assert(m_ec.value() != ENOTDIR);
if (m_ec && (m_ec.value() == ENOENT || m_ec.value() == ENOTDIR)) {
return file_status(file_type::not_found);
} else if (m_ec) {
More information about the cfe-commits
mailing list