about summary refs log tree commit diff
path: root/tests/codegen/debuginfo-generic-closure-env-names.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-11-20 09:25:26 +0000
committerbors <bors@rust-lang.org>2023-11-20 09:25:26 +0000
commit79e961fa728e543e9b4f8b44f6bc2550ea867d4d (patch)
tree5f12b6217fba67a3a7f3452612d8ea0f82b1f7c9 /tests/codegen/debuginfo-generic-closure-env-names.rs
parent19079cf804330a0d3d767a19a935c5eebdfeba0f (diff)
parent1be1c2ebcfd0ab10cbf001cc5d2471686a98aded (diff)
downloadrust-79e961fa728e543e9b4f8b44f6bc2550ea867d4d.tar.gz
rust-79e961fa728e543e9b4f8b44f6bc2550ea867d4d.zip
Auto merge of #117783 - tmiasko:inline-ret, r=cjgillot
 Fix insertion of statements to be executed along return edge in inlining

Inlining creates additional statements to be executed along the return
edge: an assignment to the destination, storage end for temporaries.

Previously those statements where inserted directly into a call target,
but this is incorrect when the target has other predecessors.

Avoid the issue by creating a new dedicated block for those statements.
When the block happens to be redundant it will be removed by CFG
simplification that follows inlining.

Fixes #117355
Diffstat (limited to 'tests/codegen/debuginfo-generic-closure-env-names.rs')
0 files changed, 0 insertions, 0 deletions