diff --git a/clang/Sema/SemaDecl.cpp b/clang/Sema/SemaDecl.cpp index ac2be7faeb4581c4426280718e95a1e385bdff09..e0ce05770265d68c3ddaa0986adfbe050ae4c08b 100644 --- a/clang/Sema/SemaDecl.cpp +++ b/clang/Sema/SemaDecl.cpp @@ -28,8 +28,7 @@ using namespace clang; Sema::DeclTy *Sema::isTypeName(const IdentifierInfo &II, Scope *S) const { Decl *IIDecl = II.getFETokenInfo(); - if (dyn_cast_or_null(IIDecl) || - dyn_cast_or_null(IIDecl)) + if (isa(IIDecl) || isa(IIDecl)) return IIDecl; return 0; }