summaryrefslogtreecommitdiffstats
path: root/clang/lib/Checker/CFRefCount.cpp
diff options
context:
space:
mode:
authorJordy Rose <jediknil@belkadan.com>2010-07-01 20:09:55 +0000
committerJordy Rose <jediknil@belkadan.com>2010-07-01 20:09:55 +0000
commitf7488ec6dc7be25c33b05195d9c235035d431611 (patch)
treec1fb17456b7cd07bd14a598cc59b3b829d87a187 /clang/lib/Checker/CFRefCount.cpp
parent19ecba740fc90e7b408cd7b2209291ff25eda6cb (diff)
downloadbcm5719-llvm-f7488ec6dc7be25c33b05195d9c235035d431611.tar.gz
bcm5719-llvm-f7488ec6dc7be25c33b05195d9c235035d431611.zip
Add an ivar to SymbolReaper for the current statement, and then stop passing the current statement around everywhere. Preparation for symbolic extents.
llvm-svn: 107422
Diffstat (limited to 'clang/lib/Checker/CFRefCount.cpp')
-rw-r--r--clang/lib/Checker/CFRefCount.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Checker/CFRefCount.cpp b/clang/lib/Checker/CFRefCount.cpp
index c2c47333c4d..8f65bf77bc6 100644
--- a/clang/lib/Checker/CFRefCount.cpp
+++ b/clang/lib/Checker/CFRefCount.cpp
@@ -1849,7 +1849,7 @@ public:
GRExprEngine& Engine,
GRStmtNodeBuilder& Builder,
ExplodedNode* Pred,
- Stmt* S, const GRState* state,
+ const GRState* state,
SymbolReaper& SymReaper);
std::pair<ExplodedNode*, const GRState *>
@@ -3400,10 +3400,9 @@ void CFRefCount::EvalDeadSymbols(ExplodedNodeSet& Dst,
GRExprEngine& Eng,
GRStmtNodeBuilder& Builder,
ExplodedNode* Pred,
- Stmt* S,
const GRState* state,
SymbolReaper& SymReaper) {
-
+ Stmt *S = Builder.getStmt();
RefBindings B = state->get<RefBindings>();
// Update counts from autorelease pools
OpenPOWER on IntegriCloud