aboutsummaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/Core/CFRefCount.cpp
diff options
context:
space:
mode:
authorJordy Rose <jediknil@belkadan.com>2011-08-24 09:22:31 +0000
committerJordy Rose <jediknil@belkadan.com>2011-08-24 09:22:31 +0000
commit1bb094fd7f5bd581d02c66985588e87862825410 (patch)
tree0546768a74ae6542621b39095574608e2c0b5211 /lib/StaticAnalyzer/Core/CFRefCount.cpp
parent0fe62f8a8c6d9f75842cd8f8349ca7b80952f785 (diff)
[analyzer] Reapply 138390 "Clean up unused bits of CFRefCount", reverted in 138405. Ended up unrelated to any problems.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138431 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/CFRefCount.cpp')
-rw-r--r--lib/StaticAnalyzer/Core/CFRefCount.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/StaticAnalyzer/Core/CFRefCount.cpp b/lib/StaticAnalyzer/Core/CFRefCount.cpp
index 8a7d3acbbd..5b984e630c 100644
--- a/lib/StaticAnalyzer/Core/CFRefCount.cpp
+++ b/lib/StaticAnalyzer/Core/CFRefCount.cpp
@@ -1655,13 +1655,6 @@ public:
BugType *leakWithinFunction, *leakAtReturn;
BugType *overAutorelease;
BugType *returnNotOwnedForOwned;
- BugReporter *BR;
-
- const ProgramState *Update(const ProgramState * state,
- SymbolRef sym,
- RefVal V,
- ArgEffect E,
- RefVal::Kind& hasErr);
public:
CFRefCount(ASTContext &Ctx, bool gcenabled, const LangOptions& lopts)
@@ -1669,7 +1662,7 @@ public:
LOpts(lopts), useAfterRelease(0), releaseNotOwned(0),
deallocGC(0), deallocNotOwned(0),
leakWithinFunction(0), leakAtReturn(0), overAutorelease(0),
- returnNotOwnedForOwned(0), BR(0) {}
+ returnNotOwnedForOwned(0) {}
void RegisterChecks(ExprEngine &Eng);
@@ -3767,9 +3760,6 @@ void CFRefCount::RegisterChecks(ExprEngine& Eng) {
leakWithinFunction->setSuppressOnSink(true);
BR.Register(leakWithinFunction);
- // Save the reference to the BugReporter.
- this->BR = &BR;
-
// Register the RetainReleaseChecker with the ExprEngine object.
// Functionality in CFRefCount will be migrated to RetainReleaseChecker
// over time.