Stop marking locals as dead in ConstProp.
This commit is contained in:
parent
70e04bd88d
commit
cc4d1e581e
1 changed files with 1 additions and 7 deletions
|
@ -886,13 +886,7 @@ impl<'tcx> MutVisitor<'tcx> for ConstPropagator<'_, 'tcx> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
StatementKind::StorageLive(local) => {
|
StatementKind::StorageLive(local) => {
|
||||||
let frame = self.ecx.frame_mut();
|
Self::remove_const(&mut self.ecx, local);
|
||||||
frame.locals[local].value =
|
|
||||||
LocalValue::Live(interpret::Operand::Immediate(interpret::Immediate::Uninit));
|
|
||||||
}
|
|
||||||
StatementKind::StorageDead(local) => {
|
|
||||||
let frame = self.ecx.frame_mut();
|
|
||||||
frame.locals[local].value = LocalValue::Dead;
|
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue