renamed Immediate::to_scalar_or_undef
to Immediate::to_scalar_or_uninit in src/shims/intrinsics.rs related issue #71193
This commit is contained in:
parent
5161ba346c
commit
21268157ff
@ -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.
|
// `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 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.
|
// Return old value.
|
||||||
this.write_immediate(res, dest)?;
|
this.write_immediate(res, dest)?;
|
||||||
// Update ptr depending on comparison.
|
// Update ptr depending on comparison.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user