On Jan 7, 2013, at 11:38 AM, Douglas Gregor <[email protected]> wrote:

>> void ObjCProtocolDecl::collectPropertiesToImplement(PropertyMap &PM) const {
>> -  for (ObjCProtocolDecl::prop_iterator P = prop_begin(),
>> -      E = prop_end(); P != E; ++P) {
>> +  const ObjCProtocolDecl *PDecl = this;
>> +  if (!isThisDeclarationADefinition() && getDefinition())
>> +    PDecl = getDefinition();
> 
> How about simply
> 
>  if (const ObjCProtocolDecl *PDecl = getDefinition()) {
>    // loop over  properties in PDecl
>  }
> 
> ?

In r171792.

- Fariborz

> 
>       - Doug
> 

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to