diff options
| author | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-03-17 03:35:08 +0000 |
|---|---|---|
| committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-03-17 03:35:08 +0000 |
| commit | 03fd76663eb22116ff59cce34a1b7c8396568a48 (patch) | |
| tree | 15440efbdd8a2e6dd6f2b77ac7b329bf37a69c91 /clang/lib/Checker/GRState.cpp | |
| parent | 476e541673c07d0504addb9ff549d7dc1791e0d9 (diff) | |
| download | bcm5719-llvm-03fd76663eb22116ff59cce34a1b7c8396568a48.tar.gz bcm5719-llvm-03fd76663eb22116ff59cce34a1b7c8396568a48.zip | |
Mark CXXThisRegion in the current or parent stack frame context as live so that
their bindings are not removed.
llvm-svn: 98705
Diffstat (limited to 'clang/lib/Checker/GRState.cpp')
| -rw-r--r-- | clang/lib/Checker/GRState.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Checker/GRState.cpp b/clang/lib/Checker/GRState.cpp index 97ede1d480f..2defbcd93c0 100644 --- a/clang/lib/Checker/GRState.cpp +++ b/clang/lib/Checker/GRState.cpp @@ -35,6 +35,7 @@ GRStateManager::~GRStateManager() { const GRState* GRStateManager::RemoveDeadBindings(const GRState* state, Stmt* Loc, + const StackFrameContext *LCtx, SymbolReaper& SymReaper) { // This code essentially performs a "mark-and-sweep" of the VariableBindings. @@ -50,7 +51,7 @@ GRStateManager::RemoveDeadBindings(const GRState* state, Stmt* Loc, state, RegionRoots); // Clean up the store. - NewState.St = StoreMgr->RemoveDeadBindings(NewState.St, Loc, SymReaper, + NewState.St = StoreMgr->RemoveDeadBindings(NewState.St, Loc, LCtx, SymReaper, RegionRoots); return ConstraintMgr->RemoveDeadBindings(getPersistentState(NewState), |

