[libcxx-commits] [PATCH] D157446: [libc++] Use _LIBCPP_VERBOSE_ABORT from __throw_bad_alloc
Louis Dionne via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Aug 10 05:32:21 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG2583946e1fdf: [libc++] Use _LIBCPP_VERBOSE_ABORT from __throw_bad_alloc (authored by ldionne).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157446/new/
https://reviews.llvm.org/D157446
Files:
libcxx/src/new_helpers.cpp
Index: libcxx/src/new_helpers.cpp
===================================================================
--- libcxx/src/new_helpers.cpp
+++ libcxx/src/new_helpers.cpp
@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
-#include <cstdlib>
+#include <__verbose_abort>
#include <new>
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
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157446.548991.patch
Type: text/x-patch
Size: 573 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230810/803ba39e/attachment-0001.bin>
More information about the libcxx-commits
mailing list