]> granicus.if.org Git - clang/commitdiff
[analyzer] Remove redundant method + whitespace.
authorAnna Zaks <ganna@apple.com>
Tue, 18 Oct 2011 23:06:25 +0000 (23:06 +0000)
committerAnna Zaks <ganna@apple.com>
Tue, 18 Oct 2011 23:06:25 +0000 (23:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142449 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h

index ac174c4b39cce5ba1edb378e9af756d8d835b2b7..8433f4cd283217ed453b7f946f531bb97edcbdd6 100644 (file)
@@ -238,9 +238,6 @@ public:
     return generateNodeImpl(PP, State, Pred, MarkAsSink);
   }
 
-  // \brief Get the builder's predecessor - the parent to all the other nodes.
-  const ExplodedNode *getPred() const { return BuilderPred; }
-
   bool hasGeneratedNodes() const {
     return (!Deferred.count(BuilderPred));
   }
@@ -261,8 +258,8 @@ public:
   /// visited on the exploded graph path.
   unsigned getCurrentBlockCount() const {
     return getBlockCounter().getNumVisited(
-                         BuilderPred->getLocationContext()->getCurrentStackFrame(),
-                         C.Block->getBlockID());
+                      BuilderPred->getLocationContext()->getCurrentStackFrame(),
+                      C.Block->getBlockID());
   }
 
   // \brief Get the builder's predecessor - the parent to all the other nodes.
@@ -393,7 +390,7 @@ public:
   }
 
   void importNodesFromBuilder(const NodeBuilder &NB) {
-    ExplodedNode *NBPred = const_cast<ExplodedNode*>(NB.getPred());
+    ExplodedNode *NBPred = const_cast<ExplodedNode*>(NB.getPredecessor());
     if (NB.hasGeneratedNodes()) {
       Deferred.erase(NBPred);
       Deferred.insert(NB.Deferred.begin(), NB.Deferred.end());