diff options
| author | Jordy Rose <jediknil@belkadan.com> | 2011-08-23 21:51:36 +0000 |
|---|---|---|
| committer | Jordy Rose <jediknil@belkadan.com> | 2011-08-23 21:51:36 +0000 |
| commit | 5aa9b1dd3f52d4987bba56e5c4993401891d6ec9 (patch) | |
| tree | 08d07dbbcff7364ff724e712ad8de7d0d9fc340e | |
| parent | c3fc26242385b5037aa42313761f306a428e200c (diff) | |
| download | bcm5719-llvm-5aa9b1dd3f52d4987bba56e5c4993401891d6ec9.tar.gz bcm5719-llvm-5aa9b1dd3f52d4987bba56e5c4993401891d6ec9.zip | |
[analyzer] Clean up unused bits of CFRefCount.
llvm-svn: 138390
| -rw-r--r-- | clang/lib/StaticAnalyzer/Core/CFRefCount.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/CFRefCount.cpp b/clang/lib/StaticAnalyzer/Core/CFRefCount.cpp index 93f7aae94d9..73b1ac270a8 100644 --- a/clang/lib/StaticAnalyzer/Core/CFRefCount.cpp +++ b/clang/lib/StaticAnalyzer/Core/CFRefCount.cpp @@ -1643,13 +1643,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) @@ -1657,7 +1650,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); @@ -3755,9 +3748,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. |

