Remove a unused member variable. Instead query the option from AnalysisManager.
llvm-svn: 80226
This commit is contained in:
parent
f7095b0ae9
commit
3ca89b9f20
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue