about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-12-12 06:52:50 +0100
committerGitHub <noreply@github.com>2023-12-12 06:52:50 +0100
commitb862e7edce40d86e13d5a7e43930bfc9a06028cf (patch)
tree1614955030cd25ced2d2e831f12a88189f57d174 /compiler/rustc_codegen_llvm/src
parentdfc5ffacd32a795f5d6875c47ac0bf3c27bd1c8a (diff)
parenteaaa290dbc3e6ceee7f4287b8b855b4c6d61d458 (diff)
downloadrust-b862e7edce40d86e13d5a7e43930bfc9a06028cf.tar.gz
rust-b862e7edce40d86e13d5a7e43930bfc9a06028cf.zip
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
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions