[llvm-branch-commits] [libcxxabi] [release/18.x][backport][libc++abi] Use __has_feature check to enable usage of thread_local for exception storage (PR #132241)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Mar 20 08:46:19 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxxabi
Author: Bushev Dmitry (dybv-sc)
<details>
<summary>Changes</summary>
This is a backport of original commit #<!-- -->97591 to 18.x release.
---
Full diff: https://github.com/llvm/llvm-project/pull/132241.diff
1 Files Affected:
- (modified) libcxxabi/src/cxa_exception_storage.cpp (+1-1)
``````````diff
diff --git a/libcxxabi/src/cxa_exception_storage.cpp b/libcxxabi/src/cxa_exception_storage.cpp
index 3a3233a1b9272..83408c904e1f7 100644
--- a/libcxxabi/src/cxa_exception_storage.cpp
+++ b/libcxxabi/src/cxa_exception_storage.cpp
@@ -24,7 +24,7 @@ extern "C" {
} // extern "C"
} // namespace __cxxabiv1
-#elif defined(HAS_THREAD_LOCAL)
+#elif __has_feature(cxx_thread_local)
namespace __cxxabiv1 {
namespace {
``````````
</details>
https://github.com/llvm/llvm-project/pull/132241
More information about the llvm-branch-commits
mailing list