tsan: fix Go build

llvm-svn: 174622
This commit is contained in:
Dmitry Vyukov 2013-02-07 15:26:55 +00:00
parent ffed8fe5c9
commit e94f4c048e
1 changed files with 2 additions and 0 deletions

View File

@ -512,6 +512,7 @@ bool FrameIsInternal(const ReportStack *frame) {
// #0 strncpy tsan_interceptors.cc:501 (foo+0x00000d8e0919)
// #1 <null> <null>: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;
}