summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-09-05 00:04:19 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-09-05 00:04:19 +0000
commitb564d1fb436d6a4bb1679420d01cef27ac7f5ec6 (patch)
tree7102ed7bc574df6c0f1fb1686877d1569951f17c /clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp
parent7c7d7b92df3280e9840652de51f94f98e739c07b (diff)
downloadbcm5719-llvm-b564d1fb436d6a4bb1679420d01cef27ac7f5ec6.tar.gz
bcm5719-llvm-b564d1fb436d6a4bb1679420d01cef27ac7f5ec6.zip
unique_ptrify ExplodedGraph::trim
llvm-svn: 217208
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp b/clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp
index 1c9a282b829..c0bc902c490 100644
--- a/clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp
+++ b/clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp
@@ -336,10 +336,10 @@ ExplodedNode *ExplodedGraph::getNode(const ProgramPoint &L,
return V;
}
-ExplodedGraph *
+std::unique_ptr<ExplodedGraph>
ExplodedGraph::trim(ArrayRef<const NodeTy *> Sinks,
InterExplodedGraphMap *ForwardMap,
- InterExplodedGraphMap *InverseMap) const{
+ InterExplodedGraphMap *InverseMap) const {
if (Nodes.empty())
return nullptr;
@@ -388,7 +388,7 @@ ExplodedGraph::trim(ArrayRef<const NodeTy *> Sinks,
return nullptr;
// Create an empty graph.
- ExplodedGraph* G = MakeEmptyGraph();
+ std::unique_ptr<ExplodedGraph> G = MakeEmptyGraph();
// ===- Pass 2 (forward DFS to construct the new graph) -===
while (!WL2.empty()) {
OpenPOWER on IntegriCloud