diff --git a/compiler-rt/lib/tsan/rtl/tsan_interceptors_libdispatch.cpp b/compiler-rt/lib/tsan/rtl/tsan_interceptors_libdispatch.cpp index 99ec2750110085..2556de87482336 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_interceptors_libdispatch.cpp +++ b/compiler-rt/lib/tsan/rtl/tsan_interceptors_libdispatch.cpp @@ -235,9 +235,15 @@ SANITIZER_WEAK_IMPORT void dispatch_async_and_wait( dispatch_queue_t queue, DISPATCH_NOESCAPE dispatch_block_t block); SANITIZER_WEAK_IMPORT void dispatch_async_and_wait_f( dispatch_queue_t queue, void *context, dispatch_function_t work); +SANITIZER_WEAK_IMPORT void dispatch_barrier_async_and_wait( + dispatch_queue_t queue, DISPATCH_NOESCAPE dispatch_block_t block); +SANITIZER_WEAK_IMPORT void dispatch_barrier_async_and_wait_f( + dispatch_queue_t queue, void *context, dispatch_function_t work); DISPATCH_INTERCEPT_SYNC_B(dispatch_async_and_wait, false) DISPATCH_INTERCEPT_SYNC_F(dispatch_async_and_wait_f, false) +DISPATCH_INTERCEPT_SYNC_B(dispatch_barrier_async_and_wait, true) +DISPATCH_INTERCEPT_SYNC_F(dispatch_barrier_async_and_wait_f, true) #endif