summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/CFRefCount.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-04-18 01:56:37 +0000
committerTed Kremenek <kremenek@apple.com>2008-04-18 01:56:37 +0000
commitcffe63569983fbb708585401852e1c228562379d (patch)
tree2ad5286af0ebff61179ea955506f096ccf3f9ad0 /clang/lib/Analysis/CFRefCount.cpp
parentd83bdd38417fce465b8ef1896c6f30ec12c8a979 (diff)
downloadbcm5719-llvm-cffe63569983fbb708585401852e1c228562379d.tar.gz
bcm5719-llvm-cffe63569983fbb708585401852e1c228562379d.zip
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. llvm-svn: 49884
Diffstat (limited to 'clang/lib/Analysis/CFRefCount.cpp')
-rw-r--r--clang/lib/Analysis/CFRefCount.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp
index 0cfd5771fa0..fb11e4c357f 100644
--- a/clang/lib/Analysis/CFRefCount.cpp
+++ b/clang/lib/Analysis/CFRefCount.cpp
@@ -1281,7 +1281,7 @@ void UseAfterRelease::EmitWarnings(BugReporter& BR) {
RangedBugReport report(*this, I->first);
report.addRange(I->second->getSourceRange());
- BR.EmitPathWarning(report);
+ BR.EmitWarning(report);
}
}
@@ -1292,7 +1292,7 @@ void BadRelease::EmitWarnings(BugReporter& BR) {
RangedBugReport report(*this, I->first);
report.addRange(I->second->getSourceRange());
- BR.EmitPathWarning(report);
+ BR.EmitWarning(report);
}
}
@@ -1303,7 +1303,7 @@ void Leak::EmitWarnings(BugReporter& BR) {
E = TF.leaks_end(); I != E; ++I) {
BugReport report(*this, I->second);
- BR.EmitPathWarning(report);
+ BR.EmitWarning(report);
}
}
OpenPOWER on IntegriCloud