diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-05-09 01:52:26 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-05-09 01:52:26 -0700 |
| commit | bcb534c295d5cc6fd63caa570cc08e6b148a507c (patch) | |
| tree | 0b17cb1e632d894f50f25e550d5113f232b0e877 /lib/libcxx/src/new_helpers.cpp | |
| parent | d9b00ee4ba48717ff6b306a6f9419e7b604ac04b (diff) | |
| parent | 74f52954b9cb40d59d80b839b45bb859146731a7 (diff) | |
| download | zig-bcb534c295d5cc6fd63caa570cc08e6b148a507c.tar.gz zig-bcb534c295d5cc6fd63caa570cc08e6b148a507c.zip | |
Merge branch 'llvm18'
Upgrades the LLVM, Clang, and LLD dependencies to LLVM 18.x
Related to #16270
Diffstat (limited to 'lib/libcxx/src/new_helpers.cpp')
| -rw-r--r-- | lib/libcxx/src/new_helpers.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcxx/src/new_helpers.cpp b/lib/libcxx/src/new_helpers.cpp index 45a0a661db..6560d0188e 100644 --- a/lib/libcxx/src/new_helpers.cpp +++ b/lib/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 @@ void __throw_bad_alloc() { # ifndef _LIBCPP_HAS_NO_EXCEPTIONS throw bad_alloc(); # else - std::abort(); + _LIBCPP_VERBOSE_ABORT("bad_alloc was thrown in -fno-exceptions mode"); # endif } |
