From cbd5aceb6296956387157fea9b13f49c932b8813 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Fri, 30 Apr 2021 11:29:13 -0700 Subject: [PATCH] [NFC][tsan] Fix cast after D101428 --- compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp b/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp index 45acfe6..e5b6690 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(&dead_thread_state->tid) = -1; + *const_cast(&dead_thread_state->tid) = -1; CHECK_EQ(0, internal_mprotect(dead_thread_state, sizeof(ThreadState), PROT_READ)); } -- 2.7.4