diff --git a/compiler-rt/lib/tsan/rtl/tsan_interface_inl.h b/compiler-rt/lib/tsan/rtl/tsan_interface_inl.h index 50ee50ca2d7f82..7027c377544e69 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_interface_inl.h +++ b/compiler-rt/lib/tsan/rtl/tsan_interface_inl.h @@ -10,9 +10,9 @@ // //===----------------------------------------------------------------------===// +#include "sanitizer_common/sanitizer_ptrauth.h" #include "tsan_interface.h" #include "tsan_rtl.h" -#include "sanitizer_common/sanitizer_ptrauth.h" #define CALLERPC ((uptr)__builtin_return_address(0)) @@ -100,17 +100,11 @@ void __tsan_vptr_read(void **vptr_p) { thr->is_vptr_access = false; } -void __tsan_func_entry(void *pc) { - FuncEntry(cur_thread(), STRIP_PAC_PC(pc)); -} +void __tsan_func_entry(void *pc) { FuncEntry(cur_thread(), STRIP_PAC_PC(pc)); } -void __tsan_func_exit() { - FuncExit(cur_thread()); -} +void __tsan_func_exit() { FuncExit(cur_thread()); } -void __tsan_ignore_thread_begin() { - ThreadIgnoreBegin(cur_thread(), CALLERPC); -} +void __tsan_ignore_thread_begin() { ThreadIgnoreBegin(cur_thread(), CALLERPC); } void __tsan_ignore_thread_end() { ThreadIgnoreEnd(cur_thread()); } diff --git a/compiler-rt/lib/tsan/rtl/tsan_rtl.cpp b/compiler-rt/lib/tsan/rtl/tsan_rtl.cpp index 1285df97858ef1..ee2ffc1c7d91d2 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_rtl.cpp +++ b/compiler-rt/lib/tsan/rtl/tsan_rtl.cpp @@ -696,28 +696,28 @@ void MemoryAccessImpl1(ThreadState *thr, uptr addr, // threads, which is not enough for the unrolled loop. #if SANITIZER_DEBUG for (int idx = 0; idx < 4; idx++) { -#include "tsan_update_shadow_word_inl.h" +# include "tsan_update_shadow_word_inl.h" } #else int idx = 0; -#include "tsan_update_shadow_word_inl.h" +# include "tsan_update_shadow_word_inl.h" idx = 1; if (stored) { -#include "tsan_update_shadow_word_inl.h" +# include "tsan_update_shadow_word_inl.h" } else { -#include "tsan_update_shadow_word_inl.h" +# include "tsan_update_shadow_word_inl.h" } idx = 2; if (stored) { -#include "tsan_update_shadow_word_inl.h" +# include "tsan_update_shadow_word_inl.h" } else { -#include "tsan_update_shadow_word_inl.h" +# include "tsan_update_shadow_word_inl.h" } idx = 3; if (stored) { -#include "tsan_update_shadow_word_inl.h" +# include "tsan_update_shadow_word_inl.h" } else { -#include "tsan_update_shadow_word_inl.h" +# include "tsan_update_shadow_word_inl.h" } #endif