Skip to content

Commit 5901d82

Browse files
committed
[clang] Do not expand pack while retaining expansion
1 parent e50131a commit 5901d82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/TreeTransform.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4361,7 +4361,7 @@ bool TreeTransform<Derived>::TransformExprs(Expr *const *Inputs,
43614361
// forgetting the partially-substituted parameter pack.
43624362
if (RetainExpansion) {
43634363
ForgetPartiallySubstitutedPackRAII Forget(getDerived());
4364-
4364+
Sema::ArgumentPackSubstitutionIndexRAII SubstIndex(getSema(), -1);
43654365
ExprResult Out = getDerived().TransformExpr(Pattern);
43664366
if (Out.isInvalid())
43674367
return true;

0 commit comments

Comments
 (0)