r290390 - Fix example: byref struct's init was incorrect, and the block literal's holder should point to it.
Jonathan Roelofs via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 22 15:48:23 PST 2016
Author: jroelofs
Date: Thu Dec 22 17:48:23 2016
New Revision: 290390
URL: http://llvm.org/viewvc/llvm-project?rev=290390&view=rev
Log:
Fix example: byref struct's init was incorrect, and the block literal's holder should point to it.
Modified:
cfe/trunk/docs/Block-ABI-Apple.rst
Modified: cfe/trunk/docs/Block-ABI-Apple.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/Block-ABI-Apple.rst?rev=290390&r1=290389&r2=290390&view=diff
==============================================================================
--- cfe/trunk/docs/Block-ABI-Apple.rst (original)
+++ cfe/trunk/docs/Block-ABI-Apple.rst Thu Dec 22 17:48:23 2016
@@ -530,13 +530,13 @@ and:
.. code-block:: c
- struct _block_byref_i i = {( .forwarding=&i, .flags=0, .size=sizeof(struct _block_byref_i) )};
+ struct _block_byref_i i = {( .isa=NULL, .forwarding=&i, .flags=0, .size=sizeof(struct _block_byref_i), .captured_i=2 )};
struct __block_literal_5 _block_literal = {
&_NSConcreteStackBlock,
(1<<25)|(1<<29), <uninitialized>,
__block_invoke_5,
&__block_descriptor_5,
- 2,
+ &i,
};
Importing ``__attribute__((NSObject))`` ``__block`` variables
More information about the cfe-commits
mailing list