]> granicus.if.org Git - clang/commitdiff
Remove a unused member variable. Instead query the option from AnalysisManager.
authorZhongxing Xu <xuzhongxing@gmail.com>
Thu, 27 Aug 2009 06:55:26 +0000 (06:55 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Thu, 27 Aug 2009 06:55:26 +0000 (06:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80226 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/PathSensitive/GRExprEngine.h
lib/Analysis/GRExprEngine.cpp

index 4ebc3f61a7064debb5c17bd7c7d142bc955c81ac..4e6e74d60ac96b3eac3f369ea884d8be9986a38b 100644 (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.
index 41caeaf68a9fd116d017c72d69ffaf2191386f22..668e3a9db3c1e705326054cdfc370cb629c9bac1 100644 (file)
@@ -245,9 +245,9 @@ void GRExprEngine::ProcessStmt(Stmt* S, GRStmtNodeBuilder& builder) {
     
   // Create the cleaned state.  
   SymbolReaper SymReaper(*AMgr.getLiveVariables(), SymMgr);  
-  CleanedState = PurgeDead ? StateMgr.RemoveDeadBindings(EntryNode->getState(), 
-                                                         CurrentStmt, SymReaper)
-                           : EntryNode->getState();
+  CleanedState = AMgr.shouldPurgeDead()
+    ? StateMgr.RemoveDeadBindings(EntryNode->getState(), CurrentStmt, SymReaper)
+    : EntryNode->getState();
 
   // Process any special transfer function for dead symbols.
   ExplodedNodeSet Tmp;