tsan: fix unused function warning in Go build

llvm-svn: 252875
This commit is contained in:
Dmitry Vyukov 2015-11-12 11:14:35 +00:00
parent 1421ed42a6
commit 317e98b1a2
1 changed files with 1 additions and 1 deletions

View File

@ -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, ...).