Skip to content

Commit

Permalink
[NFC][tsan] Fix cast after D101428
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalybuka committed Apr 30, 2021
1 parent 545a817 commit cbd5ace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit cbd5ace

Please sign in to comment.