(just cleaning up unique_ptr stuff by finding interesting 'reset' calls
at the moment)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@217210
91177308-0d34-0410-b5e6-
96231b3b80d8
// Create a new graph with a single path. This is the graph
// that will be returned to the caller.
- ExplodedGraph *GNew = new ExplodedGraph();
- GraphWrapper.Graph.reset(GNew);
+ auto GNew = llvm::make_unique<ExplodedGraph>();
GraphWrapper.BackMap.clear();
// Now walk from the error node up the BFS path, always taking the
PriorityCompare<false>(PriorityMap));
}
+ GraphWrapper.Graph = std::move(GNew);
+
return true;
}