diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-12-28 05:20:27 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-12-28 05:20:27 +0000 |
commit | ab768a85f686d8334d9c96752e5da1ee14c119cb (patch) | |
tree | cff5477b59f667597383c7da9718ad002e4b0a2e /libcxx/src/debug.cpp | |
parent | 687d3213f0c26fdd06f54544ef74cfd4d628a35a (diff) | |
download | bcm5719-llvm-ab768a85f686d8334d9c96752e5da1ee14c119cb.tar.gz bcm5719-llvm-ab768a85f686d8334d9c96752e5da1ee14c119cb.zip |
Fix debug mode build w/o exceptions
llvm-svn: 290652
Diffstat (limited to 'libcxx/src/debug.cpp')
-rw-r--r-- | libcxx/src/debug.cpp | 4 |
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 { |