summaryrefslogtreecommitdiffstats
path: root/libcxx/include/exception
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/include/exception')
-rw-r--r--libcxx/include/exception5
1 files changed, 4 insertions, 1 deletions
diff --git a/libcxx/include/exception b/libcxx/include/exception
index 686e4ecd057..d8b8cce0254 100644
--- a/libcxx/include/exception
+++ b/libcxx/include/exception
@@ -79,6 +79,7 @@ template <class E> void rethrow_if_nested(const E& e);
#include <__config>
#include <cstddef>
+#include <cstdlib>
#include <type_traits>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
@@ -161,7 +162,9 @@ make_exception_ptr(_Ep __e) _NOEXCEPT
{
return current_exception();
}
-#endif // _LIBCPP_NO_EXCEPTIONS
+#else
+ _VSTD::abort();
+#endif
}
// nested_exception
OpenPOWER on IntegriCloud