summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorJonathan Roelofs <jonathan@codesourcery.com>2016-12-22 23:48:23 +0000
committerJonathan Roelofs <jonathan@codesourcery.com>2016-12-22 23:48:23 +0000
commit7b8a91434af55efa0d36e6c295190a8149b87159 (patch)
treed159068e3975cc233bc1e071a94e1e9362270839 /clang
parentccae1ee4dfecf462a738ae4fada59a373a445aeb (diff)
downloadbcm5719-llvm-7b8a91434af55efa0d36e6c295190a8149b87159.tar.gz
bcm5719-llvm-7b8a91434af55efa0d36e6c295190a8149b87159.zip
Fix example: byref struct's init was incorrect, and the block literal's holder should point to it.
llvm-svn: 290390
Diffstat (limited to 'clang')
-rw-r--r--clang/docs/Block-ABI-Apple.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/docs/Block-ABI-Apple.rst b/clang/docs/Block-ABI-Apple.rst
index 08f346447e0..628e6f3d90b 100644
--- a/clang/docs/Block-ABI-Apple.rst
+++ b/clang/docs/Block-ABI-Apple.rst
@@ -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
OpenPOWER on IntegriCloud