mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This is kind of complicated, because an enum can be trivial for one case and not trivial for another case. We need to check at which parts of the function we can prove that the enum does (or could) have a trivial case. In such a branch, it's not required in SIL to destroy the enum location. Also, document the rules and requirements for enum memory locations in SIL.rst. rdar://73770085
7.5 KiB
7.5 KiB