parent
90c26ba9de
commit
6c44b9f145
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue