give it a scary name
This commit is contained in:
parent
5b20da8180
commit
e47d6c7a6b
5 changed files with 17 additions and 14 deletions
|
@ -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,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue