mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
When determining where to destroy a captured alloc_box, the frontier of the capturing partial_apply is computed. Previously, that computation just used the uses of the partial_apply. If the partial_apply were moved and the original destroyed before the apply, however, the result would be a miscompile where the destroy_addr/dealloc_stack for the alloc_stack to which the alloc_box was promoted was destroyed before the apply of the closure which used the address.
24 KiB
24 KiB