Files
Gabor Horvath 5515eb25dd [cxx-interop] Fix @implementation not detecting ownership mismatch
@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
2026-03-04 17:41:26 +00:00
..