swift
1a009f5b - ClosureSpecializer: don't specialize captures of stack-allocated Objective-C blocks

Commit
130 days ago
ClosureSpecializer: don't specialize captures of stack-allocated Objective-C blocks Bail if the closure captures an ObjectiveC block which might _not_ be copied onto the heap, i.e optimized by SimplifyCopyBlock. We can't do this because the optimization inserts retains+releases for captured arguments. That's not possible for stack-allocated blocks. Fixes a mis-compile rdar://154241245
Author
Parents
Loading