================
@@ -9479,7 +9479,12 @@ StmtResult
TreeTransform<Derived>::TransformCXXExpansionStmtPattern(
NewPattern = cast<CXXExpansionStmtPattern>(Res.get());
} else {
- llvm_unreachable("TODO");
+ // The only time we instantiate an expansion statement is if its expansion
+ // size is dependent (otherwise, we only instantiate the expansions and
+ // leave the underlying CXXExpansionStmtPattern as-is). Since destructuring
+ // expansion statements never have a dependent size, we should never get
+ // here.
+ llvm_unreachable("destructuring pattern should never be instantiated");
----------------
cor3ntin wrote:
tuple_size can certainly be dependent - Am i missunderstanding?
https://github.com/llvm/llvm-project/pull/169685
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits