================
@@ -90,8 +90,7 @@ class FriendDecl final
: Decl(Decl::Friend, DC, L), Friend(Friend), FriendLoc(FriendL),
EllipsisLoc(EllipsisLoc), UnsupportedFriend(false),
NumTPLists(FriendTypeTPLists.size()) {
- for (unsigned i = 0; i < NumTPLists; ++i)
- getTrailingObjects<TemplateParameterList *>()[i] = FriendTypeTPLists[i];
+ llvm::copy(FriendTypeTPLists, getTrailingObjects());
----------------
jurahul wrote:
Keeping it copy to match the semantics of the code its replacing.
https://github.com/llvm/llvm-project/pull/140081
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits