[PATCH] CodeGen for CapturedStmt

John McCall rjmccall at apple.com
Fri May 3 00:55:54 PDT 2013


On Apr 30, 2013, at 6:47 AM, "Langmuir, Ben" <ben.langmuir at intel.com> wrote:
>> I'd look at what gets done for the start of a lambda function instead; it's
>> closer to the model you have.
> 
> I don't see much special handling for the start of lambdas - they just initialize the captured struct and set up the decl map.  Is there something I've missed here?

No, that's the basic thing.

>> It doesn't look like you map the ObjC 'self' variable.
> 
> Should I?  I don't know much about ObjC.

It turns out that, in investigating this, I uncovered a bug. :)  I've fixed it so that you don't need to do anything special for 'self' (and neither do lambdas).

John.



More information about the cfe-commits mailing list