summaryrefslogtreecommitdiffstats
path: root/compiler-rt
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc2
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
OpenPOWER on IntegriCloud