From 6a0fe68844150f16e16fe64d050509e4ba740d98 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 28 Jul 2021 16:36:12 -0700 Subject: [PATCH] [tsan] Fix Darwin build after D106973 --- compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cpp b/compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cpp index 2d400c7e7098..b7d2a67fb8ff 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cpp +++ b/compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cpp @@ -363,9 +363,9 @@ static uptr GetOrCreateSyncAddress(uptr addr, ThreadState *thr, uptr pc) { static Map Addresses; Map::Handle h(&Addresses, addr); if (h.created()) { - ThreadIgnoreBegin(thr, pc); + ThreadIgnoreBegin(thr, 0); *h = (uptr) user_alloc(thr, pc, /*size=*/1); - ThreadIgnoreEnd(thr, pc); + ThreadIgnoreEnd(thr); } return *h; }