simplify an expression

llvm-svn: 42477
This commit is contained in:
Chris Lattner 2007-09-30 08:01:04 +00:00
parent 46ade4eb9b
commit 4730430bd8
1 changed files with 1 additions and 2 deletions

View 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;
}