From e94f4c048edba72a276e3632196aa96dbe1ee6a6 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 7 Feb 2013 15:26:55 +0000 Subject: [PATCH] tsan: fix Go build llvm-svn: 174622 --- compiler-rt/lib/tsan/rtl/tsan_rtl_report.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler-rt/lib/tsan/rtl/tsan_rtl_report.cc b/compiler-rt/lib/tsan/rtl/tsan_rtl_report.cc index d909942..d79f46b 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_rtl_report.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_rtl_report.cc @@ -512,6 +512,7 @@ bool FrameIsInternal(const ReportStack *frame) { // #0 strncpy tsan_interceptors.cc:501 (foo+0x00000d8e0919) // #1 :0 (0x7f7ad9b42707) static bool IsJavaNonsense(const ReportDesc *rep) { +#ifndef TSAN_GO for (uptr i = 0; i < rep->mops.Size(); i++) { ReportMop *mop = rep->mops[i]; ReportStack *frame = mop->stack; @@ -530,6 +531,7 @@ static bool IsJavaNonsense(const ReportDesc *rep) { return true; } } +#endif return false; } -- 2.7.4