mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
5515eb25dd
@objc @implementation annotated Swift methods did not check whether the ownership conventions of the Swift function match the Obj-C(++) declaration. A mismatch can result in use after free errors or leaks. This PR adds some extra check for the ownership conventions and also makes sure the imported Swift declaration is has the right parameter ownership for `NSConusming` and `CFConsuming` annotated parameters. rdar://168929333