[clang] [Sema] Fix computations of "unexpanded packs" in substituted lambdas (PR #99882)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 22 08:57:15 PDT 2024
================
@@ -4854,15 +4855,7 @@ class CXXFoldExpr : public Expr {
CXXFoldExpr(QualType T, UnresolvedLookupExpr *Callee,
SourceLocation LParenLoc, Expr *LHS, BinaryOperatorKind Opcode,
SourceLocation EllipsisLoc, Expr *RHS, SourceLocation RParenLoc,
- std::optional<unsigned> NumExpansions)
- : Expr(CXXFoldExprClass, T, VK_PRValue, OK_Ordinary),
- LParenLoc(LParenLoc), EllipsisLoc(EllipsisLoc), RParenLoc(RParenLoc),
- NumExpansions(NumExpansions ? *NumExpansions + 1 : 0), Opcode(Opcode) {
- SubExprs[SubExpr::Callee] = Callee;
- SubExprs[SubExpr::LHS] = LHS;
- SubExprs[SubExpr::RHS] = RHS;
- setDependence(computeDependence(this));
- }
+ std::optional<unsigned> NumExpansions);
----------------
cor3ntin wrote:
This change is completely unrelated, feel free to make an NFC patch for that
https://github.com/llvm/llvm-project/pull/99882
More information about the cfe-commits
mailing list