mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
In consuming switch when emitting case block that destructures a tuple payload, it was unconditionally issuing load [take] even if the element was a trivial type. Later code assumes loads for trivial types have trivial ownership. The fix uses TypeLowering::emitLoad() instead of directly creating the load, which handles setting ownership to trivial if the type is trivial. Fixes #85743
154 KiB
154 KiB