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 | bd7563eee2bd2414d459cf150ccdcb973ea8a3c7 (patch) | |
| tree | 2a569eaf085969b26f2e93dfc850b62342c26784 | |
| parent | 779ccf3b2cc0a26f0be157634393bcfdbe3c63b2 (diff) | |
| download | bcm5719-llvm-bd7563eee2bd2414d459cf150ccdcb973ea8a3c7.tar.gz bcm5719-llvm-bd7563eee2bd2414d459cf150ccdcb973ea8a3c7.zip | |
[tsan] fox the GO build
llvm-svn: 204037
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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 |

