diff --git a/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp b/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp index b46a81031258c..8bb872f0148a9 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp +++ b/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp @@ -2890,7 +2890,9 @@ TSAN_INTERCEPTOR(void, _lwp_exit) { #if SANITIZER_FREEBSD TSAN_INTERCEPTOR(void, thr_exit, ThreadID *state) { - SCOPED_TSAN_INTERCEPTOR(thr_exit, state); + { + SCOPED_TSAN_INTERCEPTOR(thr_exit, state); + } DestroyThreadState(); REAL(thr_exit(state)); }