summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/StaticAnalyzer/Core/CheckerContext.cpp4
-rw-r--r--clang/lib/StaticAnalyzer/Core/CoreEngine.cpp5
2 files changed, 2 insertions, 7 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/CheckerContext.cpp b/clang/lib/StaticAnalyzer/Core/CheckerContext.cpp
index e380165c2e8..26479d05521 100644
--- a/clang/lib/StaticAnalyzer/Core/CheckerContext.cpp
+++ b/clang/lib/StaticAnalyzer/Core/CheckerContext.cpp
@@ -22,8 +22,4 @@ CheckerContext::~CheckerContext() {
E = NB.results_end(); I != E; ++I) {
Dst.Add(*I);
}
-
- // Copy the results into the StmtNodeBuilder.
- //TODO: This will be removed after we completely migrate NodeBuilder.
- B.importNodesFromBuilder(NB);
}
diff --git a/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp b/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp
index fda7bbdf4c6..0a308670c0c 100644
--- a/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp
+++ b/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp
@@ -489,9 +489,6 @@ ExplodedNode* NodeBuilder::generateNodeImpl(const ProgramPoint &Loc,
const ProgramState *State,
ExplodedNode *FromN,
bool MarkAsSink) {
- assert(Finalized == false &&
- "We cannot create new nodes after the results have been finalized.");
-
bool IsNew;
ExplodedNode *N = C.Eng.G->getNode(Loc, State, &IsNew);
N->addPredecessor(FromN, *C.Eng.G);
@@ -570,6 +567,8 @@ ExplodedNode *StmtNodeBuilder::MakeNode(ExplodedNodeSet &Dst,
ExplodedNode *BranchNodeBuilder::generateNode(const ProgramState *State,
bool branch,
ExplodedNode *NodePred) {
+ assert(Finalized == false &&
+ "We cannot create new nodes after the results have been finalized.");
// If the branch has been marked infeasible we should not generate a node.
if (!isFeasible(branch))
OpenPOWER on IntegriCloud