mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Previously, the dealloc_stacks created for the alloc_stacks used to pass @in_guaranteed arguments to on_stack closures were created after the users of the closure. When SILGen created these alloc_stacks in the same block as the users, this happened to work. Now that AddressLowering creates such alloc_stacks elsewhere, this approach results in invalid SIL. Here, the dealloc_stacks are instead at the end of each block in the dominance frontier of the alloc_stack.
25 KiB
25 KiB