diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2015-11-12 11:14:35 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2015-11-12 11:14:35 +0000 |
commit | 636b3bea5b811a8dde96b11512c046926162e378 (patch) | |
tree | e88cf140f2185200dbdd5ca1e2575615851bb8bf /lib/tsan/rtl/tsan_platform_mac.cc | |
parent | 6b39f7333fb8f6bf0fa5e461e5e505515421b2c3 (diff) |
tsan: fix unused function warning in Go build
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@252875 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/tsan/rtl/tsan_platform_mac.cc')
-rw-r--r-- | lib/tsan/rtl/tsan_platform_mac.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tsan/rtl/tsan_platform_mac.cc b/lib/tsan/rtl/tsan_platform_mac.cc index 3c10c0b4d..5a8950a08 100644 --- a/lib/tsan/rtl/tsan_platform_mac.cc +++ b/lib/tsan/rtl/tsan_platform_mac.cc @@ -42,6 +42,7 @@ namespace __tsan { +#ifndef SANITIZER_GO static void *SignalSafeGetOrAllocate(uptr *dst, uptr size) { atomic_uintptr_t *a = (atomic_uintptr_t *)dst; void *val = (void *)atomic_load_relaxed(a); @@ -61,7 +62,6 @@ static void *SignalSafeGetOrAllocate(uptr *dst, uptr size) { return val; } -#ifndef SANITIZER_GO // On OS X, accessing TLVs via __thread or manually by using pthread_key_* is // problematic, because there are several places where interceptors are called // when TLVs are not accessible (early process startup, thread cleanup, ...). |