diff options
Diffstat (limited to 'contrib/llvm/tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp')
-rw-r--r-- | contrib/llvm/tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/llvm/tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp b/contrib/llvm/tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp index 408195d..f1a9ff2 100644 --- a/contrib/llvm/tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp +++ b/contrib/llvm/tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp @@ -27,8 +27,11 @@ void BoundNodesMap::copyTo(BoundNodesTreeBuilder *Builder) const { } void BoundNodesMap::copyTo(BoundNodesMap *Other) const { - copy(NodeMap.begin(), NodeMap.end(), - inserter(Other->NodeMap, Other->NodeMap.begin())); + for (IDToNodeMap::const_iterator I = NodeMap.begin(), + E = NodeMap.end(); + I != E; ++I) { + Other->NodeMap[I->first] = I->second; + } } BoundNodesTree::BoundNodesTree() {} |