make operands live to the end of their containing expression
In MIR construction, operands need to live exactly until they are used, which is during the (sub)expression that made the call to `as_operand`. Before this PR, operands lived until the end of the temporary scope, which was sometimes unnecessarily longer and sometimes too short. Fixes #38669.
Showing
src/test/mir-opt/issue-38669.rs
0 → 100644
想要评论请 注册 或 登录