[llvm-commits] [compiler-rt] r165376 - /compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.cc

Dmitry Vyukov dvyukov at google.com
Sun Oct 7 07:21:24 PDT 2012


Author: dvyukov
Date: Sun Oct  7 09:21:24 2012
New Revision: 165376

URL: http://llvm.org/viewvc/llvm-project?rev=165376&view=rev
Log:
tsan: better message about found races for Go ThreadSanitizer

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

Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.cc?rev=165376&r1=165375&r2=165376&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.cc Sun Oct  7 09:21:24 2012
@@ -228,7 +228,11 @@
 
   if (ctx->nreported) {
     failed = true;
+#ifndef TSAN_GO
     TsanPrintf("ThreadSanitizer: reported %d warnings\n", ctx->nreported);
+#else
+    TsanPrintf("Found %d data race(s)\n", ctx->nreported);
+#endif
   }
 
   if (ctx->nmissed_expected) {





More information about the llvm-commits mailing list