Fix debug mode build w/o exceptions
llvm-svn: 290652
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: ab768a85f686d8334d9c96752e5da1ee14c119cb
diff --git a/src/debug.cpp b/src/debug.cpp
index fe27dc8..f2fc1ce 100644
--- a/src/debug.cpp
+++ b/src/debug.cpp
@@ -41,7 +41,11 @@
}
_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 {