[compiler-rt] r245720 - tsan: don't report any bugs when report_bugs=0 flag is set

Dmitry Vyukov via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 21 11:21:25 PDT 2015


Author: dvyukov
Date: Fri Aug 21 13:21:24 2015
New Revision: 245720

URL: http://llvm.org/viewvc/llvm-project?rev=245720&view=rev
Log:
tsan: don't report any bugs when report_bugs=0 flag is set


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

Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_report.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_report.cc?rev=245720&r1=245719&r2=245720&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_report.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_report.cc Fri Aug 21 13:21:24 2015
@@ -485,6 +485,8 @@ static void AddRacyStacks(ThreadState *t
 }
 
 bool OutputReport(ThreadState *thr, const ScopedReport &srep) {
+  if (!flags()->report_bugs)
+    return false;
   atomic_store(&ctx->last_symbolize_time_ns, NanoTime(), memory_order_relaxed);
   const ReportDesc *rep = srep.GetReport();
   Suppression *supp = 0;




More information about the llvm-commits mailing list