Skip to content

Commit 2126815

Browse files
committed
renamed Immediate::to_scalar_or_undef
to Immediate::to_scalar_or_uninit in src/shims/intrinsics.rs related issue #71193
1 parent 5161ba3 commit 2126815

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shims/intrinsics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
392392

393393
// `binary_op` will bail if either of them is not a scalar.
394394
let eq = this.overflowing_binary_op(mir::BinOp::Eq, old, expect_old)?.0;
395-
let res = Immediate::ScalarPair(old.to_scalar_or_undef(), eq.into());
395+
let res = Immediate::ScalarPair(old.to_scalar_or_uninit(), eq.into());
396396
// Return old value.
397397
this.write_immediate(res, dest)?;
398398
// Update ptr depending on comparison.

0 commit comments

Comments
 (0)