From: Eric Fiselier Date: Fri, 20 Jul 2018 01:25:06 +0000 (+0000) Subject: cleanup test assertion inside library X-Git-Tag: llvmorg-7.0.0-rc1~1014 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4902bde560428d2aa105c10dc606913d3ae28cc9;p=platform%2Fupstream%2Fllvm.git cleanup test assertion inside library llvm-svn: 337517 --- diff --git a/libcxx/src/experimental/filesystem/operations.cpp b/libcxx/src/experimental/filesystem/operations.cpp index 449b609..126aec5 100644 --- a/libcxx/src/experimental/filesystem/operations.cpp +++ b/libcxx/src/experimental/filesystem/operations.cpp @@ -25,11 +25,6 @@ #include /* values for fchmodat */ #include -#ifdef NDEBUG -#undef NDEBUG -#endif -#include - _LIBCPP_BEGIN_NAMESPACE_EXPERIMENTAL_FILESYSTEM filesystem_error::~filesystem_error() {} @@ -298,7 +293,6 @@ file_status create_file_status(std::error_code& m_ec, path const& p, 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) {