Simplified internal logic of BugReporter, consolidating EmitWarning and
EmitPathWarning into one method. We now properly handle emitting warnings
without a PathDiagnosticClient when the warning does not involve a particular
statement.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49884 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp
index 0cfd577..fb11e4c 100644
--- a/lib/Analysis/CFRefCount.cpp
+++ b/lib/Analysis/CFRefCount.cpp
@@ -1281,7 +1281,7 @@
RangedBugReport report(*this, I->first);
report.addRange(I->second->getSourceRange());
- BR.EmitPathWarning(report);
+ BR.EmitWarning(report);
}
}
@@ -1292,7 +1292,7 @@
RangedBugReport report(*this, I->first);
report.addRange(I->second->getSourceRange());
- BR.EmitPathWarning(report);
+ BR.EmitWarning(report);
}
}
@@ -1303,7 +1303,7 @@
E = TF.leaks_end(); I != E; ++I) {
BugReport report(*this, I->second);
- BR.EmitPathWarning(report);
+ BR.EmitWarning(report);
}
}