]> granicus.if.org Git - clang/commitdiff
simplify an expression
authorChris Lattner <sabre@nondot.org>
Sun, 30 Sep 2007 08:01:04 +0000 (08:01 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 30 Sep 2007 08:01:04 +0000 (08:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42477 91177308-0d34-0410-b5e6-96231b3b80d8

Sema/SemaDecl.cpp

index ac2be7faeb4581c4426280718e95a1e385bdff09..e0ce05770265d68c3ddaa0986adfbe050ae4c08b 100644 (file)
@@ -28,8 +28,7 @@ using namespace clang;
 
 Sema::DeclTy *Sema::isTypeName(const IdentifierInfo &II, Scope *S) const {
   Decl *IIDecl = II.getFETokenInfo<Decl>();
-  if (dyn_cast_or_null<TypedefDecl>(IIDecl) || 
-      dyn_cast_or_null<ObjcInterfaceDecl>(IIDecl))
+  if (isa<TypedefDecl>(IIDecl) || isa<ObjcInterfaceDecl>(IIDecl))
     return IIDecl;
   return 0;
 }