[libcxx-commits] [libcxxabi] 2f21f5b - [libc++abi][NFC] Add comment on long reaching #if
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Thu May 12 10:27:00 PDT 2022
Author: Louis Dionne
Date: 2022-05-12T13:26:55-04:00
New Revision: 2f21f5b06a490396af10359b32c6313521e526a1
URL: https://github.com/llvm/llvm-project/commit/2f21f5b06a490396af10359b32c6313521e526a1
DIFF: https://github.com/llvm/llvm-project/commit/2f21f5b06a490396af10359b32c6313521e526a1.diff
LOG: [libc++abi][NFC] Add comment on long reaching #if
Added:
Modified:
libcxxabi/src/cxa_default_handlers.cpp
Removed:
################################################################################
diff --git a/libcxxabi/src/cxa_default_handlers.cpp b/libcxxabi/src/cxa_default_handlers.cpp
index 800204c1dd862..49e21c9834783 100644
--- a/libcxxabi/src/cxa_default_handlers.cpp
+++ b/libcxxabi/src/cxa_default_handlers.cpp
@@ -93,10 +93,10 @@ static void demangling_unexpected_handler()
static constexpr std::terminate_handler default_terminate_handler = demangling_terminate_handler;
static constexpr std::terminate_handler default_unexpected_handler = demangling_unexpected_handler;
-#else
+#else // !LIBCXXABI_SILENT_TERMINATE
static constexpr std::terminate_handler default_terminate_handler = ::abort;
static constexpr std::terminate_handler default_unexpected_handler = std::terminate;
-#endif
+#endif // !LIBCXXABI_SILENT_TERMINATE
//
// Global variables that hold the pointers to the current handler
More information about the libcxx-commits
mailing list