[cfe-commits] r138431 - /cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp
Jordy Rose
jediknil at belkadan.com
Wed Aug 24 02:22:31 PDT 2011
Author: jrose
Date: Wed Aug 24 04:22:31 2011
New Revision: 138431
URL: http://llvm.org/viewvc/llvm-project?rev=138431&view=rev
Log:
[analyzer] Reapply 138390 "Clean up unused bits of CFRefCount", reverted in 138405. Ended up unrelated to any problems.
Modified:
cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp?rev=138431&r1=138430&r2=138431&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp Wed Aug 24 04:22:31 2011
@@ -1655,13 +1655,6 @@
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 @@
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 @@
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.
More information about the cfe-commits
mailing list