Remove a unused member variable. Instead query the option from AnalysisManager.

llvm-svn: 80226
This commit is contained in:
Zhongxing Xu 2009-08-27 06:55:26 +00:00
parent f7095b0ae9
commit 3ca89b9f20
2 changed files with 3 additions and 6 deletions

View File

@ -77,9 +77,6 @@ class GRExprEngine : public GRSubEngine {
llvm::OwningPtr<GRSimpleAPICheck> BatchAuditor;
std::vector<Checker*> Checkers;
/// PurgeDead - Remove dead bindings before processing a statement.
bool PurgeDead;
/// BR - The BugReporter associated with this engine. It is important that
// this object be placed at the very end of member variables so that its
// destructor is called before the rest of the GRExprEngine is destroyed.

View File

@ -245,8 +245,8 @@ void GRExprEngine::ProcessStmt(Stmt* S, GRStmtNodeBuilder& builder) {
// Create the cleaned state.
SymbolReaper SymReaper(*AMgr.getLiveVariables(), SymMgr);
CleanedState = PurgeDead ? StateMgr.RemoveDeadBindings(EntryNode->getState(),
CurrentStmt, SymReaper)
CleanedState = AMgr.shouldPurgeDead()
? StateMgr.RemoveDeadBindings(EntryNode->getState(), CurrentStmt, SymReaper)
: EntryNode->getState();
// Process any special transfer function for dead symbols.