diff --git a/clang/lib/Sema/SemaHLSL.cpp b/clang/lib/Sema/SemaHLSL.cpp index e295114d7617b..744ec439b2393 100644 --- a/clang/lib/Sema/SemaHLSL.cpp +++ b/clang/lib/Sema/SemaHLSL.cpp @@ -970,8 +970,7 @@ void SemaHLSL::handleRootSignatureAttr(Decl *D, const ParsedAttr &AL) { LookupResult R(SemaRef, Ident, SourceLocation(), Sema::LookupOrdinaryName); if (SemaRef.LookupQualifiedName(R, D->getDeclContext())) - if (auto *SignatureDecl = - dyn_cast(R.getFoundDecl())) { + if (isa(R.getFoundDecl())) { // Perform validation of constructs here D->addAttr(::new (getASTContext()) RootSignatureAttr(getASTContext(), AL, Ident));