summaryrefslogtreecommitdiffstats
path: root/clang/lib/Checker/Environment.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2010-03-05 04:45:36 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2010-03-05 04:45:36 +0000
commite73584384a6c791796143589fa3a89515f506d16 (patch)
treeb49a5232508ad0e9819767997a2fc2c0f3e8f058 /clang/lib/Checker/Environment.cpp
parentcf67ffa50027baab4e8c838a73bddde215450807 (diff)
downloadbcm5719-llvm-e73584384a6c791796143589fa3a89515f506d16.tar.gz
bcm5719-llvm-e73584384a6c791796143589fa3a89515f506d16.zip
Remove reference to AnalysisContext in Environment. We already have LocationContext
information in ExplodedNode. llvm-svn: 97785
Diffstat (limited to 'clang/lib/Checker/Environment.cpp')
-rw-r--r--clang/lib/Checker/Environment.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Checker/Environment.cpp b/clang/lib/Checker/Environment.cpp
index c2c9190fc9f..671cf89119f 100644
--- a/clang/lib/Checker/Environment.cpp
+++ b/clang/lib/Checker/Environment.cpp
@@ -78,12 +78,12 @@ Environment EnvironmentManager::BindExpr(Environment Env, const Stmt *S,
if (V.isUnknown()) {
if (Invalidate)
- return Environment(F.Remove(Env.ExprBindings, S), Env.ACtx);
+ return Environment(F.Remove(Env.ExprBindings, S));
else
return Env;
}
- return Environment(F.Add(Env.ExprBindings, S, V), Env.ACtx);
+ return Environment(F.Add(Env.ExprBindings, S, V));
}
namespace {
@@ -109,12 +109,12 @@ EnvironmentManager::RemoveDeadBindings(Environment Env, const Stmt *S,
const GRState *ST,
llvm::SmallVectorImpl<const MemRegion*> &DRoots) {
- CFG &C = *Env.getAnalysisContext().getCFG();
+ CFG &C = *SymReaper.getLocationContext()->getCFG();
// We construct a new Environment object entirely, as this is cheaper than
// individually removing all the subexpression bindings (which will greatly
// outnumber block-level expression bindings).
- Environment NewEnv = getInitialEnvironment(&Env.getAnalysisContext());
+ Environment NewEnv = getInitialEnvironment();
// Iterate over the block-expr bindings.
for (Environment::iterator I = Env.begin(), E = Env.end();
OpenPOWER on IntegriCloud