mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This improves MaterializeForSetEmitter to support emission of static materializeForSet thunks, as well as witnesses. This is now done by passing in a nullptr as the conformance and requirement parameters, and adding some conditional code. Along the way, I fixed a few limitations of the old code, namely weak/unowned and static stored properties weren't completely plumbed through. There was also a memory leak in addressed materializeForSet, the valueBuffer was never freed. Finally, remove the materializeForSet synthesis in Sema since it is no longer needed, which fixes at least one known crash case.
17 lines
231 B
Objective-C
17 lines
231 B
Objective-C
@import Foundation;
|
|
|
|
@protocol NSApplicationDelegate
|
|
@end
|
|
|
|
struct NSPoint {
|
|
float x, y;
|
|
};
|
|
|
|
@interface NSReferencePoint : NSObject
|
|
@property float x;
|
|
@property float y;
|
|
@end
|
|
|
|
int NSApplicationMain(int argc, const char *argv[]);
|
|
|