Fix small typo in Block ABI docs
authorDave MacLachlan <dmaclach@google.com>
Tue, 19 Oct 2021 04:01:40 +0000 (09:31 +0530)
committerShivam Gupta <shivam98.tkg@gmail.com>
Tue, 19 Oct 2021 04:03:35 +0000 (09:33 +0530)
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

clang/docs/Block-ABI-Apple.rst

index 4f98b3b..9983f26 100644 (file)
@@ -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);
     }