diff options
| author | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-02-11 17:24:09 +0000 |
|---|---|---|
| committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-02-11 17:24:09 +0000 |
| commit | 5b1f0edf2d650028f4a6094c5b6664d59567646f (patch) | |
| tree | 4048ab2f07ea2363327e65f43557d3a162ebc44d /clang/docs | |
| parent | e60561c073e0b81793c538cd98a18c90ce019455 (diff) | |
| download | bcm5719-llvm-5b1f0edf2d650028f4a6094c5b6664d59567646f.tar.gz bcm5719-llvm-5b1f0edf2d650028f4a6094c5b6664d59567646f.zip | |
docs: update docs for objc_storeStrong behaviour
objc_storeStrong does not return a value.
llvm-svn: 294855
Diffstat (limited to 'clang/docs')
| -rw-r--r-- | clang/docs/AutomaticReferenceCounting.rst | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/clang/docs/AutomaticReferenceCounting.rst b/clang/docs/AutomaticReferenceCounting.rst index aa2a28399d1..fbd1ba4c4d4 100644 --- a/clang/docs/AutomaticReferenceCounting.rst +++ b/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 |

