Skip to content

Commit 8cf8205

Browse files
committed
[Clang][P1061] Use cast_if_present
1 parent 765db8a commit 8cf8205

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/Sema/SemaTemplateVariadic.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -802,8 +802,7 @@ bool Sema::CheckParameterPacksForExpansion(
802802
CurrentInstantiationScope->findInstantiationOf(ND);
803803
Decl *B = cast<Decl *>(*Instantiation);
804804
Expr *BindingExpr = cast<BindingDecl>(B)->getBinding();
805-
ResolvedPack =
806-
dyn_cast_if_present<ResolvedUnexpandedPackExpr>(BindingExpr);
805+
ResolvedPack = cast_if_present<ResolvedUnexpandedPackExpr>(BindingExpr);
807806
if (!ResolvedPack) {
808807
ShouldExpand = false;
809808
continue;

0 commit comments

Comments
 (0)