r234123 - Replace copy loop with std::copy.
Benjamin Kramer
benny.kra at googlemail.com
Sun Apr 5 11:55:02 PDT 2015
Author: d0k
Date: Sun Apr 5 13:55:02 2015
New Revision: 234123
URL: http://llvm.org/viewvc/llvm-project?rev=234123&view=rev
Log:
Replace copy loop with std::copy.
No functional change intended.
Modified:
cfe/trunk/lib/AST/Decl.cpp
Modified: cfe/trunk/lib/AST/Decl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Decl.cpp?rev=234123&r1=234122&r2=234123&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Decl.cpp (original)
+++ cfe/trunk/lib/AST/Decl.cpp Sun Apr 5 13:55:02 2015
@@ -1737,8 +1737,7 @@ QualifierInfo::setTemplateParameterLists
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);
}
}
More information about the cfe-commits
mailing list