From 6cf1e6d92200f61bf275ca433c88c60c934e3086 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 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174622 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/tsan/rtl/tsan_rtl_report.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/tsan/rtl/tsan_rtl_report.cc b/lib/tsan/rtl/tsan_rtl_report.cc index d9099429b..d79f46bb5 100644 --- a/lib/tsan/rtl/tsan_rtl_report.cc +++ b/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.11.4.GIT