mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SILGen: Fix crash when emitting foreign-to-native thunk for allocating init in -swift-version 5
This comes up when we import a static factory method as a convenience init. The thunk was using DynamicSelfType as the type of a basic block argument, because that was the type of the 'self' parameter in -swift-version 5. Fixes <rdar://problem/44242156>.
This commit is contained in:
@@ -39,6 +39,7 @@ typedef long NSInteger;
|
||||
- (Gizmo*) init OBJC_DESIGNATED_INITIALIZER;
|
||||
- (Gizmo*) initWithBellsOn:(NSInteger)x OBJC_DESIGNATED_INITIALIZER;
|
||||
- (instancetype) initWithoutBells:(NSInteger)x;
|
||||
+ (instancetype) gizmoWithWhistles:(NSInteger)x;
|
||||
- (void) fork NS_CONSUMES_SELF;
|
||||
- (void) enumerateSubGizmos: (void (^ _Nullable)(Gizmo*))f;
|
||||
+ (void) consume: (NS_CONSUMED Gizmo*) gizmo;
|
||||
|
||||
Reference in New Issue
Block a user