diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-05-26 03:27:35 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-05-26 03:27:35 +0000 |
commit | d4f1294f1ecd333fbd18bef9a01176e3abdd9d0a (patch) | |
tree | 58c79d5e6c5de4e83eda16cf121aa1498b4e3f73 /clang/lib/Checker/GRState.cpp | |
parent | 0568ca0ddcc3cf3adf56b1a6b7c435e1a739f938 (diff) | |
download | bcm5719-llvm-d4f1294f1ecd333fbd18bef9a01176e3abdd9d0a.tar.gz bcm5719-llvm-d4f1294f1ecd333fbd18bef9a01176e3abdd9d0a.zip |
Remove extents of dead symbolic regions when RemoveDeadBindings.
This requires creating new persistent states due to the nature of GDM.
llvm-svn: 104668
Diffstat (limited to 'clang/lib/Checker/GRState.cpp')
-rw-r--r-- | clang/lib/Checker/GRState.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/Checker/GRState.cpp b/clang/lib/Checker/GRState.cpp index f68e10b0cbc..b16e922776e 100644 --- a/clang/lib/Checker/GRState.cpp +++ b/clang/lib/Checker/GRState.cpp @@ -51,11 +51,10 @@ GRStateManager::RemoveDeadBindings(const GRState* state, Stmt* Loc, state, RegionRoots); // Clean up the store. - NewState.St = StoreMgr->RemoveDeadBindings(NewState.St, Loc, LCtx, SymReaper, - RegionRoots); + const GRState *s = StoreMgr->RemoveDeadBindings(NewState, Loc, LCtx, + SymReaper, RegionRoots); - return ConstraintMgr->RemoveDeadBindings(getPersistentState(NewState), - SymReaper); + return ConstraintMgr->RemoveDeadBindings(s, SymReaper); } const GRState *GRState::unbindLoc(Loc LV) const { |