On Oct 26, 2012, at 3:04 PM, Eli Friedman <[email protected]> wrote:
> On Fri, Oct 26, 2012 at 1:22 PM, Fariborz Jahanian <[email protected]> > 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 _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
