diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2012-05-31 14:24:10 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2012-05-31 14:24:10 +0000 |
commit | a13749bd7b3629a3498e765960729a8ade5db7cf (patch) | |
tree | f61aa5172d3cf30ab87265c2bcb34c2c9c6ca37c /lib/tsan/rtl/tsan_suppressions.cc | |
parent | 9aead37421a6e4bf43265e5195c6ac31fc519982 (diff) | |
download | compiler-rt-a13749bd7b3629a3498e765960729a8ade5db7cf.tar.gz compiler-rt-a13749bd7b3629a3498e765960729a8ade5db7cf.tar.bz2 compiler-rt-a13749bd7b3629a3498e765960729a8ade5db7cf.tar.xz |
tsan: fix a typo
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157744 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/tsan/rtl/tsan_suppressions.cc')
-rw-r--r-- | lib/tsan/rtl/tsan_suppressions.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tsan/rtl/tsan_suppressions.cc b/lib/tsan/rtl/tsan_suppressions.cc index 2c7c318a..e62dcfbd 100644 --- a/lib/tsan/rtl/tsan_suppressions.cc +++ b/lib/tsan/rtl/tsan_suppressions.cc @@ -148,9 +148,9 @@ bool IsSuppressed(ReportType typ, const ReportStack *stack) { return false; for (const ReportStack *frame = stack; frame; frame = frame->next) { for (Suppression *supp = g_suppressions; supp; supp = supp->next) { - if (stype == supp->type || - SuppressionMatch(supp->templ, frame->func) || - SuppressionMatch(supp->templ, frame->file)) { + if (stype == supp->type && + (SuppressionMatch(supp->templ, frame->func) || + SuppressionMatch(supp->templ, frame->file))) { DPrintf("ThreadSanitizer: matched suppression '%s'\n", supp->templ); return true; } |