mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
We allow none values to be stored to a non-trivial enum. For such store_borrow, `LiveValues::forValues` used an Owned storage type, but endLexicalLifetime expected Guaranteed storage type, leading to a compiler crash. For store_borrow, use the LiveValues::forGuaranteed and for store use LiveValues::forOwned to avoid this. Fixes rdar://114390472
88 KiB
88 KiB