Fix a bug I just introduced.

llvm-svn: 42479
This commit is contained in:
Chris Lattner 2007-09-30 08:31:00 +00:00
parent 90c26ba9de
commit 6c44b9f145
1 changed files with 3 additions and 3 deletions

View File

@ -27,9 +27,9 @@
using namespace clang;
Sema::DeclTy *Sema::isTypeName(const IdentifierInfo &II, Scope *S) const {
Decl *IIDecl = II.getFETokenInfo<Decl>();
if (isa<TypedefDecl>(IIDecl) || isa<ObjcInterfaceDecl>(IIDecl))
return IIDecl;
if (Decl *IIDecl = II.getFETokenInfo<Decl>())
if (isa<TypedefDecl>(IIDecl) || isa<ObjcInterfaceDecl>(IIDecl))
return IIDecl;
return 0;
}