summaryrefslogtreecommitdiffstats
path: root/clang/lib/Checker/Environment.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/Environment.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/Environment.cpp')
-rw-r--r--clang/lib/Checker/Environment.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Checker/Environment.cpp b/clang/lib/Checker/Environment.cpp
index addfc21c180..48152ceb46f 100644
--- a/clang/lib/Checker/Environment.cpp
+++ b/clang/lib/Checker/Environment.cpp
@@ -125,7 +125,7 @@ static bool isBlockExprInCallers(const Stmt *E, const LocationContext *LC) {
// - Mark the region in DRoots if the binding is a loc::MemRegionVal.
Environment
-EnvironmentManager::RemoveDeadBindings(Environment Env, const Stmt *S,
+EnvironmentManager::RemoveDeadBindings(Environment Env,
SymbolReaper &SymReaper,
const GRState *ST,
llvm::SmallVectorImpl<const MemRegion*> &DRoots) {
@@ -163,7 +163,7 @@ EnvironmentManager::RemoveDeadBindings(Environment Env, const Stmt *S,
if (!C.isBlkExpr(BlkExpr))
continue;
- if (SymReaper.isLive(S, BlkExpr)) {
+ if (SymReaper.isLive(BlkExpr)) {
// Copy the binding to the new map.
NewEnv.ExprBindings = F.Add(NewEnv.ExprBindings, BlkExpr, X);
OpenPOWER on IntegriCloud