mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This fixes a SIL ownership verification error when importing structs like:
typedef bool (^boolBlock)(void);
struct objc_bool_block {
__unsafe_unretained boolBlock block;
};
Fixes rdar://126142109 (Found an operand with a value that is not compatible
with the operand's operand ownership kind map)
8 lines
144 B
Objective-C
8 lines
144 B
Objective-C
#import <CoreFoundation/CoreFoundation.h>
|
|
|
|
typedef bool (^boolBlock)(void);
|
|
|
|
struct objc_bool_block {
|
|
__unsafe_unretained boolBlock block;
|
|
};
|