give it a scary name

This commit is contained in:
Ralf Jung 2022-05-05 09:55:38 +02:00
parent 5b20da8180
commit e47d6c7a6b
5 changed files with 17 additions and 14 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, /*force*/ false) {
Some(match self.ecx.read_immediate_raw(&op, /*force*/ false) {
Ok(Ok(imm)) => imm.into(),
_ => op,
})