cleanup test assertion inside library

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@337517 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2018-07-20 01:25:06 +00:00
parent e274f439c6
commit f8bfc79ac5

View File

@@ -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::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) {