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:
Philippe Nadon 2020-07-23 10:28:00 -06:00
parent 5161ba346c
commit 21268157ff

View File

@ -392,7 +392,7 @@ fn call_intrinsic(
// `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.