[compiler-rt] r204037 - [tsan] fox the GO build

Kostya Serebryany kcc at google.com
Mon Mar 17 03:37:45 PDT 2014


Author: kcc
Date: Mon Mar 17 05:37:44 2014
New Revision: 204037

URL: http://llvm.org/viewvc/llvm-project?rev=204037&view=rev
Log:
[tsan] fox the GO build

Modified:
    compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_mutex.cc

Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_mutex.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_mutex.cc?rev=204037&r1=204036&r2=204037&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_mutex.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_mutex.cc Mon Mar 17 05:37:44 2014
@@ -419,6 +419,7 @@ void AcquireReleaseImpl(ThreadState *thr
 }
 
 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, up
   trace.ObtainCurrent(thr, pc);
   rep.AddStack(&trace);
   OutputReport(ctx, rep);
+#endif  // TSAN_GO
 }
 
 }  // namespace __tsan





More information about the llvm-commits mailing list