summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/CFRefCount.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-04-14 17:39:48 +0000
committerTed Kremenek <kremenek@apple.com>2008-04-14 17:39:48 +0000
commit7e15130dc92158ebdbdd6f1de5ff55d1bcdaee74 (patch)
tree146258cd129afa21455da9529cf986aaff5b43df /clang/lib/Analysis/CFRefCount.cpp
parent7629b71dd4cee9d1a3a69b092b318674532b22ba (diff)
downloadbcm5719-llvm-7e15130dc92158ebdbdd6f1de5ff55d1bcdaee74.tar.gz
bcm5719-llvm-7e15130dc92158ebdbdd6f1de5ff55d1bcdaee74.zip
Hooked up the dead-store checker to the BugReporter interface. Now dead-store
warnings are emitted as part of the warnings registered by GRSimpleVals. llvm-svn: 49658
Diffstat (limited to 'clang/lib/Analysis/CFRefCount.cpp')
-rw-r--r--clang/lib/Analysis/CFRefCount.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp
index ff78fd749ec..df479884ed5 100644
--- a/clang/lib/Analysis/CFRefCount.cpp
+++ b/clang/lib/Analysis/CFRefCount.cpp
@@ -911,9 +911,9 @@ void UseAfterRelease::EmitWarnings(BugReporter& BR) {
for (CFRefCount::use_after_iterator I = TF.use_after_begin(),
E = TF.use_after_end(); I != E; ++I) {
- RangedBugReport report(*this);
+ RangedBugReport report(*this, I->first);
report.addRange(I->second->getSourceRange());
- BR.EmitPathWarning(report, I->first);
+ BR.EmitPathWarning(report);
}
}
@@ -922,9 +922,9 @@ void BadRelease::EmitWarnings(BugReporter& BR) {
for (CFRefCount::bad_release_iterator I = TF.bad_release_begin(),
E = TF.bad_release_end(); I != E; ++I) {
- RangedBugReport report(*this);
+ RangedBugReport report(*this, I->first);
report.addRange(I->second->getSourceRange());
- BR.EmitPathWarning(report, I->first);
+ BR.EmitPathWarning(report);
}
}
OpenPOWER on IntegriCloud