]> granicus.if.org Git - clang/commitdiff
GRStateManager::CurrentStmt is not used. Remove it.
authorZhongxing Xu <xuzhongxing@gmail.com>
Fri, 13 Nov 2009 06:04:01 +0000 (06:04 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Fri, 13 Nov 2009 06:04:01 +0000 (06:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@87091 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 976a7427bdc02a81672f861f469d38e493779109..ef0c36c44d9fbb155b1f8d877a536552246553af 100644 (file)
@@ -400,10 +400,6 @@ private:
   /// Alloc - A BumpPtrAllocator to allocate states.
   llvm::BumpPtrAllocator& Alloc;
 
-  /// CurrentStmt - The block-level statement currently being visited.  This
-  ///  is set by GRExprEngine.
-  Stmt* CurrentStmt;
-
   /// TF - Object that represents a bundle of transfer functions
   ///  for manipulating and creating SVals.
   GRTransferFuncs* TF;
index 50d53df2b7839e8b03106d4c8a397e579397c3cd..857120f15255ae977509d6a5f2a5088fc088e5b1 100644 (file)
@@ -293,9 +293,7 @@ void GRExprEngine::ProcessStmt(Stmt* S, GRStmtNodeBuilder& builder) {
   Builder = &builder;
   EntryNode = builder.getLastNode();
 
-  // FIXME: Consolidate.
   CurrentStmt = S;
-  StateMgr.CurrentStmt = S;
 
   // Set up our simple checks.
   if (BatchAuditor)
@@ -353,8 +351,6 @@ void GRExprEngine::ProcessStmt(Stmt* S, GRStmtNodeBuilder& builder) {
   CleanedState = NULL;
   EntryNode = NULL;
 
-  // FIXME: Consolidate.
-  StateMgr.CurrentStmt = 0;
   CurrentStmt = 0;
 
   Builder = NULL;