[cfe-commits] r42477 - /cfe/trunk/Sema/SemaDecl.cpp

Chris Lattner sabre at nondot.org
Sun Sep 30 01:01:04 PDT 2007


Author: lattner
Date: Sun Sep 30 03:01:04 2007
New Revision: 42477

URL: http://llvm.org/viewvc/llvm-project?rev=42477&view=rev
Log:
simplify an expression

Modified:
    cfe/trunk/Sema/SemaDecl.cpp

Modified: cfe/trunk/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Sema/SemaDecl.cpp?rev=42477&r1=42476&r2=42477&view=diff

==============================================================================
--- cfe/trunk/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/Sema/SemaDecl.cpp Sun Sep 30 03:01:04 2007
@@ -28,8 +28,7 @@
 
 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;
 }





More information about the cfe-commits mailing list