From 21268157ff89c13ee5d079e322bb692bb9216802 Mon Sep 17 00:00:00 2001 From: Philippe Nadon Date: Thu, 23 Jul 2020 10:28:00 -0600 Subject: [PATCH] renamed Immediate::to_scalar_or_undef to Immediate::to_scalar_or_uninit in src/shims/intrinsics.rs related issue #71193 --- src/shims/intrinsics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shims/intrinsics.rs b/src/shims/intrinsics.rs index ce0368b4a08..ee64b1ffca4 100644 --- a/src/shims/intrinsics.rs +++ b/src/shims/intrinsics.rs @@ -392,7 +392,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx // `binary_op` will bail if either of them is not a scalar. let eq = this.overflowing_binary_op(mir::BinOp::Eq, old, expect_old)?.0; - let res = Immediate::ScalarPair(old.to_scalar_or_undef(), eq.into()); + let res = Immediate::ScalarPair(old.to_scalar_or_uninit(), eq.into()); // Return old value. this.write_immediate(res, dest)?; // Update ptr depending on comparison.