summaryrefslogtreecommitdiffstats
path: root/libcxx/include/__threading_support
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-01-24 04:57:33 +0000
committerEric Fiselier <eric@efcs.ca>2017-01-24 04:57:33 +0000
commitd5fd7d7ea152be8e0c6bed31be690cb020e9d96b (patch)
tree5704a5675eb760f8d63661974c3b114d2fc28c7e /libcxx/include/__threading_support
parent5a6826ebc488e9b21edd5e4f4d25bc209e809614 (diff)
downloadbcm5719-llvm-d5fd7d7ea152be8e0c6bed31be690cb020e9d96b.tar.gz
bcm5719-llvm-d5fd7d7ea152be8e0c6bed31be690cb020e9d96b.zip
[libcxx] Never use <cassert> within libc++
Summary: It is my opinion that libc++ should never use `<cassert>`, including in the `dylib`. This patch remove all uses of `assert` from within libc++ and replaces most of them with `_LIBCPP_ASSERT` instead. Additionally this patch turn `LIBCXX_ENABLE_ASSERTIONS` off by default, because the standard library should not be aborting user programs unless explicitly asked to. Reviewers: mclow.lists, compnerd, smeenai Reviewed By: mclow.lists Subscribers: mgorny, cfe-commits Differential Revision: https://reviews.llvm.org/D29063 llvm-svn: 292883
Diffstat (limited to 'libcxx/include/__threading_support')
-rw-r--r--libcxx/include/__threading_support1
1 files changed, 0 insertions, 1 deletions
diff --git a/libcxx/include/__threading_support b/libcxx/include/__threading_support
index 13ab769ba93..35b61967edb 100644
--- a/libcxx/include/__threading_support
+++ b/libcxx/include/__threading_support
@@ -25,7 +25,6 @@
# include <pthread.h>
# include <sched.h>
#elif defined(_LIBCPP_HAS_THREAD_API_WIN32)
-#include <assert.h>
#include <Windows.h>
#include <process.h>
#include <fibersapi.h>
OpenPOWER on IntegriCloud