File tree 2 files changed +3
-6
lines changed
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -2258,16 +2258,13 @@ non-block type [*]_. Equivalent to the following code:
2258
2258
2259
2259
.. code-block :: objc
2260
2260
2261
- id objc_storeStrong (id *object, id value) {
2262
- value = [value retain];
2261
+ void objc_storeStrong (id *object, id value) {
2263
2262
id oldValue = *object;
2263
+ value = [value retain];
2264
2264
*object = value;
2265
2265
[oldValue release];
2266
- return value;
2267
2266
}
2268
2267
2269
- Always returns ``value ``.
2270
-
2271
2268
.. [* ] This does not imply that a ``__strong `` object of block type is an
2272
2269
invalid argument to this function. Rather it implies that an ``objc_retain ``
2273
2270
and not an ``objc_retainBlock `` operation will be emitted if the argument is
Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ struct ObjCEntrypoints {
166
166
// / void objc_release(id);
167
167
llvm::Constant *objc_release;
168
168
169
- // / id objc_storeStrong(id*, id);
169
+ // / void objc_storeStrong(id*, id);
170
170
llvm::Constant *objc_storeStrong;
171
171
172
172
// / id objc_storeWeak(id*, id);
You can’t perform that action at this time.
0 commit comments