mirror of
https://github.com/apple/swift.git
synced 2026-03-04 18:24:35 +01:00
Array literals only need to be finalized, if the array is really allocated. In case of zero elements, no allocation is done, but the empty-array singleton is used. "Finalization" means to emit an end_cow_mutation instruction on the array. As the empty-array singleton is a read-only and shared object, it's not legal to do a end_cow_mutation on it.
69 KiB
69 KiB