[compiler-rt] cbd5ace - [NFC][tsan] Fix cast after D101428
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 30 11:53:18 PDT 2021
Author: Vitaly Buka
Date: 2021-04-30T11:53:09-07:00
New Revision: cbd5aceb6296956387157fea9b13f49c932b8813
URL: https://github.com/llvm/llvm-project/commit/cbd5aceb6296956387157fea9b13f49c932b8813
DIFF: https://github.com/llvm/llvm-project/commit/cbd5aceb6296956387157fea9b13f49c932b8813.diff
LOG: [NFC][tsan] Fix cast after D101428
Added:
Modified:
compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp b/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp
index 45acfe66ff3f..e5b6690edfd0 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp
+++ b/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp
@@ -497,7 +497,7 @@ ThreadState *cur_thread() {
dead_thread_state->fast_state.SetIgnoreBit();
dead_thread_state->ignore_interceptors = 1;
dead_thread_state->is_dead = true;
- *const_cast<int*>(&dead_thread_state->tid) = -1;
+ *const_cast<u32*>(&dead_thread_state->tid) = -1;
CHECK_EQ(0, internal_mprotect(dead_thread_state, sizeof(ThreadState),
PROT_READ));
}
More information about the llvm-commits
mailing list