tsan: fix a typo

llvm-svn: 157744
This commit is contained in:
Dmitry Vyukov 2012-05-31 14:24:10 +00:00
parent 1b71207f48
commit 6f448700e4
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}