Copy the block to the heap before passing it to the callee in case the block escapes in the callee.
rdar://problem/55683462
Differential D71431
Call objc_retainBlock before passing a block as a variadic argument ahatanak on Dec 12 2019, 12:48 PM. Authored by
Details Copy the block to the heap before passing it to the callee in case the block escapes in the callee. rdar://problem/55683462
Diff Detail
Event Timeline
|
"to a non-block pointer type (such as `id`)", please. Otherwise looks good. I didn't realize that this conversion behavior wasn't documented at all, so thank you for adding it.