Commits

Slava Pestov committed d313fa7d42b
SILGen: @convention(block) bridging thunks need to copy blocks in optionals The @objc method argument bridging did the right thing but for func to block thunks we didn't handle optionals and IUOs. Symptoms included memory leaks because IRGen would later try to retain the block by calling Block_copy() and discarding the result, or memory corruption because the on-stack block could outlive its stack frame. Fixes <rdar://problem/22471309>. Swift SVN r31882