diff --git a/libcxx/src/new_helpers.cpp b/libcxx/src/new_helpers.cpp --- a/libcxx/src/new_helpers.cpp +++ b/libcxx/src/new_helpers.cpp @@ -6,7 +6,7 @@ // //===----------------------------------------------------------------------===// -#include +#include <__verbose_abort> #include namespace std { // purposefully not versioned @@ -21,7 +21,7 @@ # ifndef _LIBCPP_HAS_NO_EXCEPTIONS throw bad_alloc(); # else - std::abort(); + _LIBCPP_VERBOSE_ABORT("bad_alloc was thrown in -fno-exceptions mode"); # endif }