summaryrefslogtreecommitdiff
path: root/docs/AutomaticReferenceCounting.rst
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-02-22 00:16:48 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-02-22 00:16:48 +0000
commit644367c198de78f6e8306bf38a52cd358d0c4c37 (patch)
treef9310807bb52fe8a443a0a40678b0a4137484eae /docs/AutomaticReferenceCounting.rst
parentc9088966de61c4958efbb7b635dad78d779ac6e6 (diff)
downloadclang-644367c198de78f6e8306bf38a52cd358d0c4c37.tar.gz
clang-644367c198de78f6e8306bf38a52cd358d0c4c37.tar.bz2
clang-644367c198de78f6e8306bf38a52cd358d0c4c37.tar.xz
Added a footnote to the documentation for objc_storeStrong that makes it clear
that a __strong object of block type is a valid argument to objc_storeStrong but that an objc_retain and not an objc_retainBlock will be emitted. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175838 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/AutomaticReferenceCounting.rst')
-rw-r--r--docs/AutomaticReferenceCounting.rst7
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/AutomaticReferenceCounting.rst b/docs/AutomaticReferenceCounting.rst
index 385b51fb19..8993bc7b6b 100644
--- a/docs/AutomaticReferenceCounting.rst
+++ b/docs/AutomaticReferenceCounting.rst
@@ -2068,7 +2068,7 @@ adequately aligned for a pointer. ``value`` is null or a pointer to a valid
object.
Performs the complete sequence for assigning to a ``__strong`` object of
-non-block type. Equivalent to the following code:
+non-block type [*]_. Equivalent to the following code:
.. code-block:: objc
@@ -2082,6 +2082,11 @@ non-block type. Equivalent to the following code:
Always returns ``value``.
+.. [*] This does not imply that a ``__strong`` object of block type is an
+ invalid argument to this function. Rather it implies that an ``objc_retain``
+ and not an ``objc_retainBlock`` operation will be emitted if the argument is
+ a block.
+
.. _arc.runtime.objc_storeWeak:
``id objc_storeWeak(id *object, id value);``