summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/GRExprEngine.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2008-11-16 07:06:26 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2008-11-16 07:06:26 +0000
commit99a96d6ef38a391c42f514b7a4358bbb2db6c788 (patch)
treec9a8423f0f7996419e15349ea5c77be6287652f5 /clang/lib/Analysis/GRExprEngine.cpp
parentf8f6270f14fe69f4e6af489212a484289f2a7e57 (diff)
downloadbcm5719-llvm-99a96d6ef38a391c42f514b7a4358bbb2db6c788.tar.gz
bcm5719-llvm-99a96d6ef38a391c42f514b7a4358bbb2db6c788.zip
Enhance modularization: return a <state,loc> pair to let GRExprEngine modify the
environment. llvm-svn: 59407
Diffstat (limited to 'clang/lib/Analysis/GRExprEngine.cpp')
-rw-r--r--clang/lib/Analysis/GRExprEngine.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/clang/lib/Analysis/GRExprEngine.cpp b/clang/lib/Analysis/GRExprEngine.cpp
index e002c136372..fe7d6f94266 100644
--- a/clang/lib/Analysis/GRExprEngine.cpp
+++ b/clang/lib/Analysis/GRExprEngine.cpp
@@ -1698,11 +1698,15 @@ void GRExprEngine::VisitCast(Expr* CastE, Expr* Ex, NodeTy* Pred, NodeSet& Dst){
assert(Loc::IsLocType(ExTy));
// Delegate to store manager.
- const GRState* NewSt = getStoreManager().CastRegion(St, V, T, CastE);
+ std::pair<const GRState*, SVal> Res =
+ getStoreManager().CastRegion(St, V, T, CastE);
+
+ const GRState* NewSt = Res.first;
+ SVal NewPtr = Res.second;
// If no new region is created, fall through to the default case.
if (NewSt != St) {
- MakeNode(Dst, CastE, N, NewSt);
+ MakeNode(Dst, CastE, N, BindExpr(NewSt, CastE, NewPtr));
continue;
}
}
OpenPOWER on IntegriCloud