[compiler-rt] ca7c66c - [tsan] Fix Darwin build after D106973

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 28 16:40:33 PDT 2021


Author: Vitaly Buka
Date: 2021-07-28T16:40:18-07:00
New Revision: ca7c66ccb85b9468ba86ad12d91c940e4cb72dc3

URL: https://github.com/llvm/llvm-project/commit/ca7c66ccb85b9468ba86ad12d91c940e4cb72dc3
DIFF: https://github.com/llvm/llvm-project/commit/ca7c66ccb85b9468ba86ad12d91c940e4cb72dc3.diff

LOG: [tsan] Fix Darwin build after D106973

Added: 
    

Modified: 
    compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cpp b/compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cpp
index 2d400c7e7098..6cbbea120182 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cpp
+++ b/compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cpp
@@ -365,7 +365,7 @@ static uptr GetOrCreateSyncAddress(uptr addr, ThreadState *thr, uptr pc) {
   if (h.created()) {
     ThreadIgnoreBegin(thr, pc);
     *h = (uptr) user_alloc(thr, pc, /*size=*/1);
-    ThreadIgnoreEnd(thr, pc);
+    ThreadIgnoreEnd(thr);
   }
   return *h;
 }


        


More information about the llvm-commits mailing list