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 | 17ddf1c108bb847fb05111fec09d664c9bb2e49b (patch) | |
tree | 520dd6c4e05d8dbbea2d03a8384cb01a8e915688 /lib/Checker/GRExprEngine.cpp | |
parent | 3ddd6e026a173e9519e84e27f8d6aed5473b8b4e (diff) |
Mark CXXThisRegion in the current or parent stack frame context as live so that
their bindings are not removed.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98705 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/GRExprEngine.cpp')
-rw-r--r-- | lib/Checker/GRExprEngine.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Checker/GRExprEngine.cpp b/lib/Checker/GRExprEngine.cpp index e64ba9446d..3ace552adc 100644 --- a/lib/Checker/GRExprEngine.cpp +++ b/lib/Checker/GRExprEngine.cpp @@ -481,7 +481,9 @@ void GRExprEngine::ProcessStmt(CFGElement CE, GRStmtNodeBuilder& builder) { SymbolReaper SymReaper(BasePred->getLocationContext(), SymMgr); CleanedState = AMgr.shouldPurgeDead() - ? StateMgr.RemoveDeadBindings(EntryNode->getState(), CurrentStmt, SymReaper) + ? StateMgr.RemoveDeadBindings(EntryNode->getState(), CurrentStmt, + BasePred->getLocationContext()->getCurrentStackFrame(), + SymReaper) : EntryNode->getState(); // Process any special transfer function for dead symbols. |