From d1d3a7abcec72857e2ae75d6bbfe968b9deebe37 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 5 Apr 2015 18:55:02 +0000 Subject: [PATCH] Replace copy loop with std::copy. No functional change intended. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@234123 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/Decl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp index 3efd24f21f..69e44573dc 100644 --- a/lib/AST/Decl.cpp +++ b/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); } } -- 2.50.1