[compiler-rt] r252746 - tsan: fix unused variable in Go build

Dmitry Vyukov via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 11 08:09:20 PST 2015


Author: dvyukov
Date: Wed Nov 11 10:09:20 2015
New Revision: 252746

URL: http://llvm.org/viewvc/llvm-project?rev=252746&view=rev
Log:
tsan: fix unused variable in Go build


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

Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_report.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_report.cc?rev=252746&r1=252745&r2=252746&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_report.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_report.cc Wed Nov 11 10:09:20 2015
@@ -19,12 +19,6 @@
 
 namespace __tsan {
 
-#if SANITIZER_MAC
-static const char *const kInterposedFunctionPrefix = "wrap_";
-#else
-static const char *const kInterposedFunctionPrefix = "__interceptor_";
-#endif
-
 ReportStack::ReportStack() : frames(nullptr), suppressable(false) {}
 
 ReportStack *ReportStack::New() {
@@ -117,6 +111,12 @@ static const char *ReportTypeString(Repo
   return "";
 }
 
+#if SANITIZER_MAC
+static const char *const kInterposedFunctionPrefix = "wrap_";
+#else
+static const char *const kInterposedFunctionPrefix = "__interceptor_";
+#endif
+
 void PrintStack(const ReportStack *ent) {
   if (ent == 0 || ent->frames == 0) {
     Printf("    [failed to restore the stack]\n\n");




More information about the llvm-commits mailing list