More toward nonfragile abi's synthesized ivars.

llvm-svn: 68115
This commit is contained in:
Fariborz Jahanian 2009-03-31 17:00:52 +00:00
parent 66afeb5968
commit 3254a6f94c
1 changed files with 8 additions and 0 deletions

View File

@ -1693,6 +1693,14 @@ static const ObjCInterfaceDecl *getInterfaceDeclForIvar(
E = OI->ivar_end(); I != E; ++I)
if ((*I)->getIdentifier() == IVD->getIdentifier())
return OI;
// look into properties.
for (ObjCInterfaceDecl::prop_iterator I = OI->prop_begin(),
E = OI->prop_end(); I != E; ++I) {
ObjCPropertyDecl *PDecl = (*I);
if (ObjCIvarDecl *IV = PDecl->getPropertyIvarDecl())
if (IV->getIdentifier() == IVD->getIdentifier())
return OI;
}
return getInterfaceDeclForIvar(OI->getSuperClass(), IVD);
}