Rollup merge of #118797 - tmiasko:dead-coro, r=davidtwco

End locals' live range before suspending coroutine

State transforms retains storage statements for locals that are not
stored inside a coroutine. It ensures those locals are live when
resuming by inserting StorageLive as appropriate. It forgot to end the
storage of those locals when suspending, which is fixed here.

While the end of live range is implicit when executing return, it is
nevertheless useful for inliner which would otherwise extend the live
range beyond return.

Fixes #117733
This commit is contained in:
Matthias Krüger 2023-12-12 06:52:50 +01:00 committed by GitHub
commit 2e6277cd56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

Diff content is not available