[clang] a94bc9d - Fix small typo in Block ABI docs

Shivam Gupta via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 18 21:03:31 PDT 2021


Author: Dave MacLachlan
Date: 2021-10-19T09:33:35+05:30
New Revision: a94bc9d81bfce2c697494431b4524fcee90a26cf

URL: https://github.com/llvm/llvm-project/commit/a94bc9d81bfce2c697494431b4524fcee90a26cf
DIFF: https://github.com/llvm/llvm-project/commit/a94bc9d81bfce2c697494431b4524fcee90a26cf.diff

LOG: Fix small typo in Block ABI docs

I think the C++ code example had the wrong name for the block copy function.

Reviewed By: rjmccall

Differential Revision: https://reviews.llvm.org/D91815

Added: 
    

Modified: 
    clang/docs/Block-ABI-Apple.rst

Removed: 
    


################################################################################
diff  --git a/clang/docs/Block-ABI-Apple.rst b/clang/docs/Block-ABI-Apple.rst
index 4f98b3ba6538..9983f26a6240 100644
--- a/clang/docs/Block-ABI-Apple.rst
+++ b/clang/docs/Block-ABI-Apple.rst
@@ -765,7 +765,7 @@ The compiler would synthesize:
        printf("%d\n", _block->foo.value());
     }
     
-    void __block_literal_10(struct __block_literal_10 *dst, struct __block_literal_10 *src) {
+    void __block_copy_10(struct __block_literal_10 *dst, struct __block_literal_10 *src) {
          FOO_ctor(&dst->foo, &src->foo);
     }
     


        


More information about the cfe-commits mailing list