From bd7563eee2bd2414d459cf150ccdcb973ea8a3c7 Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Mon, 17 Mar 2014 10:37:44 +0000 Subject: [tsan] fox the GO build llvm-svn: 204037 --- compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compiler-rt/lib') diff --git a/compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc b/compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc index 81bdffa8a3d..bbf6886ae6e 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc @@ -419,6 +419,7 @@ void AcquireReleaseImpl(ThreadState *thr, uptr pc, SyncClock *c) { } void ReportDeadlock(ThreadState *thr, uptr pc, DDReport *r) { +#ifndef TSAN_GO if (r == 0) return; Context *ctx = CTX(); @@ -438,6 +439,7 @@ void ReportDeadlock(ThreadState *thr, uptr pc, DDReport *r) { trace.ObtainCurrent(thr, pc); rep.AddStack(&trace); OutputReport(ctx, rep); +#endif // TSAN_GO } } // namespace __tsan -- cgit v1.2.3