mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
In case of a non-copyable type the final destroy (or take) of a stack location can be missing if the value has only trivial fields. The optimization inserted a `destroy_addr` in this case although it wasn't there before. Beside fixing this problem I also refactored the code a bit to make it more readable.