We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 765db8a commit 8cf8205Copy full SHA for 8cf8205
clang/lib/Sema/SemaTemplateVariadic.cpp
@@ -802,8 +802,7 @@ bool Sema::CheckParameterPacksForExpansion(
802
CurrentInstantiationScope->findInstantiationOf(ND);
803
Decl *B = cast<Decl *>(*Instantiation);
804
Expr *BindingExpr = cast<BindingDecl>(B)->getBinding();
805
- ResolvedPack =
806
- dyn_cast_if_present<ResolvedUnexpandedPackExpr>(BindingExpr);
+ ResolvedPack = cast_if_present<ResolvedUnexpandedPackExpr>(BindingExpr);
807
if (!ResolvedPack) {
808
ShouldExpand = false;
809
continue;
0 commit comments