aboutsummaryrefslogtreecommitdiff
path: root/libcxx/include/any
diff options
context:
space:
mode:
authorNikolas Klauser <nikolasklauser@berlin.de>2023-01-08 16:47:53 +0100
committerNikolas Klauser <nikolasklauser@berlin.de>2023-04-09 02:52:33 +0200
commit75196f8e72be3f18c5a831e23f385c4ae3eb62b5 (patch)
tree608ade973b08a478578de2baf7bb238226e03529 /libcxx/include/any
parent2c7f5118772d1168819f4850206ebc59881d93bb (diff)
downloadllvm-75196f8e72be3f18c5a831e23f385c4ae3eb62b5.zip
llvm-75196f8e72be3f18c5a831e23f385c4ae3eb62b5.tar.gz
llvm-75196f8e72be3f18c5a831e23f385c4ae3eb62b5.tar.bz2
[libc++] Remove <cstdlib> includes
We changed the `abort` calls when trying to throw exceptions in `-fno-exceptions` mode to `__verbose_abort` calls, which removes the dependency in most files. Reviewed By: ldionne, #libc Spies: dim, emaste, mikhail.ramalho, smeenai, libcxx-commits Differential Revision: https://reviews.llvm.org/D146076
Diffstat (limited to 'libcxx/include/any')
-rw-r--r--libcxx/include/any2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/any b/libcxx/include/any
index e139756..963e5e0 100644
--- a/libcxx/include/any
+++ b/libcxx/include/any
@@ -107,7 +107,6 @@ namespace std {
#include <__utility/move.h>
#include <__utility/unreachable.h>
#include <__verbose_abort>
-#include <cstdlib>
#include <initializer_list>
#include <typeinfo>
#include <version>
@@ -718,6 +717,7 @@ _LIBCPP_END_NAMESPACE_STD
#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
# include <atomic>
# include <concepts>
+# include <cstdlib>
# include <iosfwd>
# include <iterator>
# include <memory>