mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
new closures when all captures of the symbolic closure, including address-typed captures, are symbolic constants. For other closures, they must have been autoclosures passed to the log call and therefore they need not be duplicated but reused as such. This eliminates the need to copy_value the non-constant captured values of closures. Instead the closure itself is copied as a whole. Fixes <rdar://problem/60344043>
26 KiB
26 KiB