diff options
Diffstat (limited to 'compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc')
| -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 |

