1
Fork 0

interpret: debug-check ScalarPair layout information

This commit is contained in:
Ralf Jung 2022-05-04 22:47:46 +02:00
parent f75d884046
commit 5b20da8180
5 changed files with 89 additions and 46 deletions

View file

@ -412,7 +412,7 @@ impl<'mir, 'tcx> ConstPropagator<'mir, 'tcx> {
// Try to read the local as an immediate so that if it is representable as a scalar, we can
// handle it as such, but otherwise, just return the value as is.
Some(match self.ecx.try_read_immediate(&op) {
Some(match self.ecx.try_read_immediate(&op, /*force*/ false) {
Ok(Ok(imm)) => imm.into(),
_ => op,
})