summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/tools/clang/docs/AutomaticReferenceCounting.rst
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/llvm/tools/clang/docs/AutomaticReferenceCounting.rst')
-rw-r--r--gnu/llvm/tools/clang/docs/AutomaticReferenceCounting.rst7
1 files changed, 2 insertions, 5 deletions
diff --git a/gnu/llvm/tools/clang/docs/AutomaticReferenceCounting.rst b/gnu/llvm/tools/clang/docs/AutomaticReferenceCounting.rst
index aa2a28399d1..fbd1ba4c4d4 100644
--- a/gnu/llvm/tools/clang/docs/AutomaticReferenceCounting.rst
+++ b/gnu/llvm/tools/clang/docs/AutomaticReferenceCounting.rst
@@ -2258,16 +2258,13 @@ non-block type [*]_. Equivalent to the following code:
.. code-block:: objc
- id objc_storeStrong(id *object, id value) {
- value = [value retain];
+ void objc_storeStrong(id *object, id value) {
id oldValue = *object;
+ value = [value retain];
*object = value;
[oldValue release];
- return value;
}
-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