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 | 317e98b1a23512ffe813189d614e3c660502f755 (patch) | |
| tree | 6361ef4cff03fee51f6965f2b56bf623f88cc6e4 /compiler-rt | |
| parent | 1421ed42a63a1c15470df5f7da09e254e8660f23 (diff) | |
| download | bcm5719-llvm-317e98b1a23512ffe813189d614e3c660502f755.tar.gz bcm5719-llvm-317e98b1a23512ffe813189d614e3c660502f755.zip | |
tsan: fix unused function warning in Go build
llvm-svn: 252875
Diffstat (limited to 'compiler-rt')
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_platform_mac.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_platform_mac.cc b/compiler-rt/lib/tsan/rtl/tsan_platform_mac.cc index 3c10c0b4de4..5a8950a08cb 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_platform_mac.cc +++ b/compiler-rt/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, ...). |

