mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
While materializing one metadata pack, another pack may need to be materialized. When that happens, the inner pack's dynamically sized allocation must be deallocated within the same dominance scope. The CFG within which the inner dynamically sized pack is allocated isn't visible from SIL; that explains why the existing infrastructure around `de`/`alloc_pack_metadata` instructions fails to produce a deallocation at the appropriate point. In the fullness of time, this emitted code should be optimized such that the inner loop is hoisted out of its current outer loop. rdar://141718098
56 KiB
56 KiB