forked from OSchip/llvm-project
More toward nonfragile abi's synthesized ivars.
llvm-svn: 68115
This commit is contained in:
parent
66afeb5968
commit
3254a6f94c
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue