projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb18649
)
Replace copy loop with std::copy.
author
Benjamin Kramer
<benny.kra@googlemail.com>
Sun, 5 Apr 2015 18:55:02 +0000
(18:55 +0000)
committer
Benjamin Kramer
<benny.kra@googlemail.com>
Sun, 5 Apr 2015 18:55:02 +0000
(18:55 +0000)
No functional change intended.
llvm-svn: 234123
clang/lib/AST/Decl.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/AST/Decl.cpp
b/clang/lib/AST/Decl.cpp
index
3efd24f
..
69e4457
100644
(file)
--- 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);
}
}