Skip to content

Commit 343060c

Browse files
committed
Do not create a template parameter list for the index
1 parent a6857a5 commit 343060c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

clang/lib/Sema/SemaExpand.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,8 @@ Sema::ActOnCXXExpansionStmtDecl(unsigned TemplateDepth,
4848
CXXExpansionStmtDecl *
4949
Sema::BuildCXXExpansionStmtDecl(DeclContext *Ctx, SourceLocation TemplateKWLoc,
5050
NonTypeTemplateParmDecl *NTTP) {
51-
auto *TParamList = TemplateParameterList::Create(
52-
Context, TemplateKWLoc, TemplateKWLoc, {NTTP}, TemplateKWLoc,
53-
/*RequiresClause=*/nullptr);
5451
auto *Result =
55-
CXXExpansionStmtDecl::Create(Context, Ctx, TemplateKWLoc, TParamList);
52+
CXXExpansionStmtDecl::Create(Context, Ctx, TemplateKWLoc, NTTP);
5653
Ctx->addDecl(Result);
5754
return Result;
5855
}

0 commit comments

Comments
 (0)