We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ede7bdb + 90cfaa1 commit 2062b33Copy full SHA for 2062b33
include/swift/Runtime/HeapObject.h
@@ -1159,8 +1159,7 @@ swift_getMangledTypeName(const Metadata *type);
1159
#define STANDARD_OBJC_METHOD_IMPLS_FOR_SWIFT_OBJECTS \
1160
- (id)retain { \
1161
auto SELF = reinterpret_cast<HeapObject *>(self); \
1162
- swift_retain(SELF); \
1163
- return self; \
+ return reinterpret_cast<id>(swift_retain(SELF)); \
1164
} \
1165
- (oneway void)release { \
1166
0 commit comments