mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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