forked from OSchip/llvm-project
parent
1b71207f48
commit
6f448700e4
|
@ -148,9 +148,9 @@ bool IsSuppressed(ReportType typ, const ReportStack *stack) {
|
||||||
return false;
|
return false;
|
||||||
for (const ReportStack *frame = stack; frame; frame = frame->next) {
|
for (const ReportStack *frame = stack; frame; frame = frame->next) {
|
||||||
for (Suppression *supp = g_suppressions; supp; supp = supp->next) {
|
for (Suppression *supp = g_suppressions; supp; supp = supp->next) {
|
||||||
if (stype == supp->type ||
|
if (stype == supp->type &&
|
||||||
SuppressionMatch(supp->templ, frame->func) ||
|
(SuppressionMatch(supp->templ, frame->func) ||
|
||||||
SuppressionMatch(supp->templ, frame->file)) {
|
SuppressionMatch(supp->templ, frame->file))) {
|
||||||
DPrintf("ThreadSanitizer: matched suppression '%s'\n", supp->templ);
|
DPrintf("ThreadSanitizer: matched suppression '%s'\n", supp->templ);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue