summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-04-05 18:55:02 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-04-05 18:55:02 +0000
commit67e6a5499cb0951386de01576f372841df8c6c69 (patch)
tree29e7611e2378c0751780d75c19c6454c2fa54bde /clang
parenteb18649ead0fbc23cfe59257884239d9e8a473a2 (diff)
downloadbcm5719-llvm-67e6a5499cb0951386de01576f372841df8c6c69.tar.gz
bcm5719-llvm-67e6a5499cb0951386de01576f372841df8c6c69.zip
Replace copy loop with std::copy.
No functional change intended. llvm-svn: 234123
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/AST/Decl.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp
index 3efd24f21f9..69e44573dc6 100644
--- a/clang/lib/AST/Decl.cpp
+++ b/clang/lib/AST/Decl.cpp
@@ -1737,8 +1737,7 @@ QualifierInfo::setTemplateParameterListsInfo(ASTContext &Context,
if (NumTPLists > 0) {
TemplParamLists = new (Context) TemplateParameterList*[NumTPLists];
NumTemplParamLists = NumTPLists;
- for (unsigned i = NumTPLists; i-- > 0; )
- TemplParamLists[i] = TPLists[i];
+ std::copy(TPLists, TPLists + NumTPLists, TemplParamLists);
}
}
OpenPOWER on IntegriCloud