GVN causes moved function arguments to be used again #120613
Labels
A-mir-opt
Area: MIR optimizations
I-unsound
Issue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/Soundness
P-medium
Medium priority
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Right:
Wrong:
The first argument to
fn1
is partially moved. GVN causes the second argument to use the partially moved value:The text was updated successfully, but these errors were encountered: