diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-02-04 04:56:43 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-02-04 04:56:43 +0000 |
commit | 319deb83d2a52bf788d0e724c8cd463cf9c576fd (patch) | |
tree | 5116057686b8ed51a49d3b1cb47aca9b826a7715 /clang/lib/Checker/RegionStore.cpp | |
parent | 49f878524cc00302db8f8a83256b6ed9ccd73db2 (diff) | |
download | bcm5719-llvm-319deb83d2a52bf788d0e724c8cd463cf9c576fd.tar.gz bcm5719-llvm-319deb83d2a52bf788d0e724c8cd463cf9c576fd.zip |
Cast evaluation no longer touch GRState.
llvm-svn: 95290
Diffstat (limited to 'clang/lib/Checker/RegionStore.cpp')
-rw-r--r-- | clang/lib/Checker/RegionStore.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Checker/RegionStore.cpp b/clang/lib/Checker/RegionStore.cpp index c350894036c..25e8059d263 100644 --- a/clang/lib/Checker/RegionStore.cpp +++ b/clang/lib/Checker/RegionStore.cpp @@ -1523,9 +1523,8 @@ const GRState *RegionStoreManager::Bind(const GRState *state, Loc L, SVal V) { if (IsAnyPointerOrIntptr(superTy, Ctx) && IsAnyPointerOrIntptr(erTy, Ctx)) { - SValuator::CastResult cr = - ValMgr.getSValuator().EvalCast(V, state, superTy, erTy); - return Bind(cr.getState(), loc::MemRegionVal(superR), cr.getSVal()); + V = ValMgr.getSValuator().EvalCast(V, superTy, erTy); + return Bind(state, loc::MemRegionVal(superR), V); } // For now, just invalidate the fields of the struct/union/class. // FIXME: Precisely handle the fields of the record. |