mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The main thing that this patch does is work around a shortcoming of SILGenApply namely that we in certain cases emit self before we know what the callee is. We work around this by emitting self at +0 assuming that the callee does pass self at +0 and set a flag. After we know what the callee is, if the flag is set, we emit an extra retain for self. rdar://15729033 Swift SVN r27553
5.9 KiB
5.9 KiB