summaryrefslogtreecommitdiffstats
path: root/libcxx/src
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/src')
-rw-r--r--libcxx/src/debug.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcxx/src/debug.cpp b/libcxx/src/debug.cpp
index fe27dc82ca6..f2fc1ceb495 100644
--- a/libcxx/src/debug.cpp
+++ b/libcxx/src/debug.cpp
@@ -41,7 +41,11 @@ _LIBCPP_NORETURN void __libcpp_abort_debug_function(__libcpp_debug_info const& i
}
_LIBCPP_NORETURN void __libcpp_throw_debug_function(__libcpp_debug_info const& info) {
+#ifndef _LIBCPP_NO_EXCEPTIONS
throw __libcpp_debug_exception(info);
+#else
+ __libcpp_abort_debug_function(info);
+#endif
}
struct __libcpp_debug_exception::__libcpp_debug_exception_imp {
OpenPOWER on IntegriCloud