================
@@ -924,6 +924,11 @@ Sema::ActOnDecompositionDeclarator(Scope *S, Declarator &D,
auto *BD = BindingDecl::Create(Context, DC, B.NameLoc, B.Name, QT);
+ if (BD->isParameterPack()) {
----------------
Sirraide wrote:
Yeah, I agree; I also quite dislike code duplication. Another reason is that it
makes it hard to see at a glance whether two similar code blocks are actually
doing the same thing or not (and if they aren’t, whether that’s intentional).
https://github.com/llvm/llvm-project/pull/214716
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits