[compiler-rt] 6a0fe68 - [tsan] Fix Darwin build after D106973
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 28 16:37:14 PDT 2021
Author: Vitaly Buka
Date: 2021-07-28T16:37:01-07:00
New Revision: 6a0fe68844150f16e16fe64d050509e4ba740d98
URL: https://github.com/llvm/llvm-project/commit/6a0fe68844150f16e16fe64d050509e4ba740d98
DIFF: https://github.com/llvm/llvm-project/commit/6a0fe68844150f16e16fe64d050509e4ba740d98.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..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;
}
More information about the llvm-commits
mailing list