diff options
author | Kostya Serebryany <kcc@google.com> | 2014-03-17 10:37:44 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2014-03-17 10:37:44 +0000 |
commit | e07bce06c994605e6c6cd9120ce833653d350fd3 (patch) | |
tree | 2d425423cf5eafa77a37b36c28808b10c57c80c8 /lib | |
parent | 8df2d9a11f6b57535e691f5a5ba1af1fcba710e0 (diff) |
[tsan] fox the GO build
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204037 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tsan/rtl/tsan_rtl_mutex.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tsan/rtl/tsan_rtl_mutex.cc b/lib/tsan/rtl/tsan_rtl_mutex.cc index 81bdffa8a..bbf6886ae 100644 --- a/lib/tsan/rtl/tsan_rtl_mutex.cc +++ b/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 |