mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
If a foreign reference type has a custom retain function, emit a call to it instead of emitting a call to objc_retainAutoreleasedReturnValue. rdar://117353222
16 lines
325 B
Objective-C
16 lines
325 B
Objective-C
#ifndef REFERENCE_COUNTED_OBJC_PROPERTY_H
|
|
#define REFERENCE_COUNTED_OBJC_PROPERTY_H
|
|
|
|
#include "reference-counted.h"
|
|
|
|
SWIFT_BEGIN_NULLABILITY_ANNOTATIONS
|
|
|
|
@interface C0
|
|
@property (nonnull, readonly) NS::LocalCount *lc;
|
|
- (instancetype)init;
|
|
@end
|
|
|
|
SWIFT_END_NULLABILITY_ANNOTATIONS
|
|
|
|
#endif // REFERENCE_COUNTED_OBJC_PROPERTY_H
|