[cfe-commits] r167374 - in /cfe/trunk: lib/CodeGen/CGObjCMac.cpp test/CodeGenObjC/arc-captured-block-var-inlined-layout.m test/CodeGenObjC/mrr-captured-block-var-inlined-layout.m

Fariborz Jahanian fjahanian at apple.com
Sun Nov 11 13:43:16 PST 2012


On Nov 11, 2012, at 11:26 AM, Fariborz Jahanian wrote:

> 
> On Nov 10, 2012, at 4:13 PM, John McCall wrote:
>> 
>> Whereas the extended layout for the following block should describe the
>> variable as byref, and the variable's own layout should describe its contents
>> as __unsafe_unretained:
>> __block NSString *string;
>> bar(^(NSWindow *window) { string = window.title; });
> Yes, 'string' is byref in the layout. But I don't understand what you mean by 'variable's own layout'. 
> We are not laying out 'byref' variable's individual fields in the extended layout, only that they are 'byref'.

Oh I see, you are talking about the layout for the 'byref' variables for the new field in the __block variable descriptor.
Something I haven't done yet.

- Fariborz

> 
> - Fariborz
> 
>> 
>> John.
> 
> 
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121111/6dcc20b3/attachment.html>


More information about the cfe-commits mailing list