Skip to content

Commit 75dd411

Browse files
authored
[libc++abi] Add a missing include for abort() (#126865)
This is to fix a build error when we use Clang modules in Chromium.
1 parent 7647f47 commit 75dd411

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libcxxabi/src/cxa_default_handlers.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// new_handler.
1010
//===----------------------------------------------------------------------===//
1111

12+
#include <cstdlib> // std::abort
1213
#include <exception>
1314
#include <new>
1415
#include "abort_message.h"
@@ -94,7 +95,7 @@ static void demangling_unexpected_handler()
9495
static constexpr std::terminate_handler default_terminate_handler = demangling_terminate_handler;
9596
static constexpr std::terminate_handler default_unexpected_handler = demangling_unexpected_handler;
9697
#else // !LIBCXXABI_SILENT_TERMINATE
97-
static constexpr std::terminate_handler default_terminate_handler = ::abort;
98+
static constexpr std::terminate_handler default_terminate_handler = std::abort;
9899
static constexpr std::terminate_handler default_unexpected_handler = std::terminate;
99100
#endif // !LIBCXXABI_SILENT_TERMINATE
100101

0 commit comments

Comments
 (0)