diff --git a/lib/Analysis/DataStructure/DataStructure.cpp b/lib/Analysis/DataStructure/DataStructure.cpp index ecfed8dd688..3a55c5420b1 100644 --- a/lib/Analysis/DataStructure/DataStructure.cpp +++ b/lib/Analysis/DataStructure/DataStructure.cpp @@ -394,8 +394,8 @@ DSGraph::~DSGraph() { void DSGraph::dump() const { print(std::cerr); } -DSNodeHandle copyHelper(const DSNodeHandle* fromNode, - std::map *NodeMap) { +static DSNodeHandle copyHelper(const DSNodeHandle* fromNode, + std::map *NodeMap) { return DSNodeHandle((*NodeMap)[fromNode->getNode()], fromNode->getOffset()); }