summaryrefslogtreecommitdiffstats
path: root/libcxx/src/experimental/filesystem/operations.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2018-07-20 01:25:06 +0000
committerEric Fiselier <eric@efcs.ca>2018-07-20 01:25:06 +0000
commit4902bde560428d2aa105c10dc606913d3ae28cc9 (patch)
tree52f77ce967c0ed9c095d116d1076052269ded9d9 /libcxx/src/experimental/filesystem/operations.cpp
parentc16998649e1f55c61158004f461fd629d9b8b7f9 (diff)
downloadbcm5719-llvm-4902bde560428d2aa105c10dc606913d3ae28cc9.tar.gz
bcm5719-llvm-4902bde560428d2aa105c10dc606913d3ae28cc9.zip
cleanup test assertion inside library
llvm-svn: 337517
Diffstat (limited to 'libcxx/src/experimental/filesystem/operations.cpp')
-rw-r--r--libcxx/src/experimental/filesystem/operations.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/libcxx/src/experimental/filesystem/operations.cpp b/libcxx/src/experimental/filesystem/operations.cpp
index 449b609751f..126aec501a6 100644
--- a/libcxx/src/experimental/filesystem/operations.cpp
+++ b/libcxx/src/experimental/filesystem/operations.cpp
@@ -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) {
OpenPOWER on IntegriCloud