From: Jonathan Roelofs Date: Thu, 22 Dec 2016 23:48:23 +0000 (+0000) Subject: Fix example: byref struct's init was incorrect, and the block literal's holder should... X-Git-Tag: llvmorg-4.0.0-rc1~1427 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7b8a91434af55efa0d36e6c295190a8149b87159;p=platform%2Fupstream%2Fllvm.git Fix example: byref struct's init was incorrect, and the block literal's holder should point to it. llvm-svn: 290390 --- diff --git a/clang/docs/Block-ABI-Apple.rst b/clang/docs/Block-ABI-Apple.rst index 08f3464..628e6f3 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), , __block_invoke_5, &__block_descriptor_5, - 2, + &i, }; Importing ``__attribute__((NSObject))`` ``__block`` variables