summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/copy-prop/borrowed_local.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mir-opt/copy-prop/borrowed_local.rs')
-rw-r--r--tests/mir-opt/copy-prop/borrowed_local.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mir-opt/copy-prop/borrowed_local.rs b/tests/mir-opt/copy-prop/borrowed_local.rs
index a89b64441..bf94dc57d 100644
--- a/tests/mir-opt/copy-prop/borrowed_local.rs
+++ b/tests/mir-opt/copy-prop/borrowed_local.rs
@@ -21,11 +21,11 @@ fn f() -> bool {
let b = a;
// We cannot propagate the place `a`.
let r2 = &b;
- Call(RET, next, cmp_ref(r1, r2))
+ Call(RET = cmp_ref(r1, r2), next)
}
next = {
// But we can propagate the value `a`.
- Call(RET, ret, opaque(b))
+ Call(RET = opaque(b), ret)
}
ret = {
Return()