mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
There were a bunch of things broken here--it's amazing this ever appeared to work. - Retain 'self' before partial_applying it to the method, so we don't overrelease it. - Correctly lower the ownership conventions of the dynamic method against the SILDeclRef, so we don't overrelease arguments or over-over-release self, and we handle ObjC methods with weird conventions correctly. - Thunk when there are bridging type differences between the partially-applied ObjC method and a Swift method, so we don't crash if the method takes NSStrings or other bridged types. Add verifier checks that the result of 'dynamic_method' and BB arg of 'dynamic_method_br' actually match the method they're dispatching. Swift SVN r17198
40 KiB
40 KiB