[libcxx-commits] [libcxx] [libcxx] mark _LIBCPP_VERBOSE_{ABORT, TRAP} `nomerge` (PR #200078)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Fri May 29 06:15:53 PDT 2026
================
@@ -42,9 +42,13 @@ _LIBCPP_END_EXPLICIT_ABI_ANNOTATIONS
# if !_LIBCPP_AVAILABILITY_HAS_VERBOSE_ABORT
// The decltype is there to suppress -Wunused warnings in this configuration.
void __use(const char*, ...);
-# define _LIBCPP_VERBOSE_ABORT(...) (decltype(::std::__use(__VA_ARGS__))(), __builtin_abort())
+# define _LIBCPP_VERBOSE_ABORT(...) \
+ ({ \
+ decltype(::std::__use(__VA_ARGS__))(); \
+ [[clang::__nomerge__]] __builtin_abort(); \
----------------
philnik777 wrote:
```suggestion
[[_Clang::__nomerge__]] __builtin_abort(); \
```
https://github.com/llvm/llvm-project/pull/200078
More information about the libcxx-commits
mailing list