[compiler-rt] 898c116 - [tsan] Avoid ALIGNED in tsan_platform_mac.cpp. NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 16 14:28:42 PDT 2024
Author: Fangrui Song
Date: 2024-07-16T14:28:38-07:00
New Revision: 898c116add170afb832d7f2f6bcfdc0daa6765f1
URL: https://github.com/llvm/llvm-project/commit/898c116add170afb832d7f2f6bcfdc0daa6765f1
DIFF: https://github.com/llvm/llvm-project/commit/898c116add170afb832d7f2f6bcfdc0daa6765f1.diff
LOG: [tsan] Avoid ALIGNED in tsan_platform_mac.cpp. NFC
Added:
Modified:
compiler-rt/lib/tsan/rtl/tsan_platform_mac.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/tsan/rtl/tsan_platform_mac.cpp b/compiler-rt/lib/tsan/rtl/tsan_platform_mac.cpp
index 07d83e1a9a9ff..eb344df168ab9 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_platform_mac.cpp
+++ b/compiler-rt/lib/tsan/rtl/tsan_platform_mac.cpp
@@ -46,8 +46,8 @@
namespace __tsan {
#if !SANITIZER_GO
-static char main_thread_state[sizeof(ThreadState)] ALIGNED(
- SANITIZER_CACHE_LINE_SIZE);
+alignas(SANITIZER_CACHE_LINE_SIZE) static char main_thread_state[sizeof(
+ ThreadState)];
static ThreadState *dead_thread_state;
static pthread_key_t thread_state_key;
More information about the llvm-commits
mailing list