[cfe-commits] r68115 - /cfe/trunk/lib/CodeGen/CGObjCMac.cpp
Fariborz Jahanian
fjahanian at apple.com
Tue Mar 31 10:00:52 PDT 2009
Author: fjahanian
Date: Tue Mar 31 12:00:52 2009
New Revision: 68115
URL: http://llvm.org/viewvc/llvm-project?rev=68115&view=rev
Log:
More toward nonfragile abi's synthesized ivars.
Modified:
cfe/trunk/lib/CodeGen/CGObjCMac.cpp
Modified: cfe/trunk/lib/CodeGen/CGObjCMac.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjCMac.cpp?rev=68115&r1=68114&r2=68115&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjCMac.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjCMac.cpp Tue Mar 31 12:00:52 2009
@@ -1693,6 +1693,14 @@
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);
}
More information about the cfe-commits
mailing list