[cfe-commits] r166809 - in /cfe/trunk: lib/CodeGen/CodeGenModule.cpp test/CodeGenObjCXX/implementation-in-extern-c.mm

jahanian fjahanian at apple.com
Fri Oct 26 15:21:02 PDT 2012


On Oct 26, 2012, at 3:04 PM, Eli Friedman <eli.friedman at gmail.com> wrote:

> On Fri, Oct 26, 2012 at 1:22 PM, Fariborz Jahanian <fjahanian at apple.com> wrote:
>> Author: fjahanian
>> Date: Fri Oct 26 15:22:11 2012
>> New Revision: 166809
>> 
>> 
>>   for (RecordDecl::decl_iterator I = LSD->decls_begin(), E = LSD->decls_end();
>> -       I != E; ++I)
>> +       I != E; ++I) {
>> +    if (ObjCImplDecl *OID = dyn_cast<ObjCImplDecl>(*I)) {
>> +      for (ObjCContainerDecl::method_iterator M = OID->meth_begin(),
>> +           MEnd = OID->meth_end();
>> +           M != MEnd; ++M)
>> +        EmitTopLevelDecl(*M);
>> +    }
> 
> Please add a comment with an explanation of why this is necessary.

Comment added in r166823.
- Fariborz

> 
> -Eli




More information about the cfe-commits mailing list