mirror of
https://github.com/apple/swift.git
synced 2026-03-04 18:24:35 +01:00
Unless the type is a trivial scalar. As a follow-up we could try to prove that the referenced object is unique, but that seems more natural for DeadObjectElimination. This optimization was never correct because references may alias. See rdar://36038096 ([SR-6608] DeadCodeElimination removes fix_lifetime instructions.) Fixes rdar://74759728 (The compiler/optimizer seems to be shortening the lifetime too early)
32 KiB
32 KiB