Fix rebased CastKind
This commit is contained in:
parent
aaa35b3e48
commit
890fae9c60
1 changed files with 8 additions and 1 deletions
|
@ -96,7 +96,14 @@ impl<'tcx> ValueAnalysis<'tcx> for ConstAnalysis<'tcx> {
|
||||||
state: &mut State<Self::Value>,
|
state: &mut State<Self::Value>,
|
||||||
) -> ValueOrPlaceOrRef<Self::Value> {
|
) -> ValueOrPlaceOrRef<Self::Value> {
|
||||||
match rvalue {
|
match rvalue {
|
||||||
Rvalue::Cast(CastKind::Misc, operand, ty) => {
|
Rvalue::Cast(
|
||||||
|
CastKind::IntToInt
|
||||||
|
| CastKind::FloatToInt
|
||||||
|
| CastKind::FloatToFloat
|
||||||
|
| CastKind::IntToFloat,
|
||||||
|
operand,
|
||||||
|
ty,
|
||||||
|
) => {
|
||||||
let operand = self.eval_operand(operand, state);
|
let operand = self.eval_operand(operand, state);
|
||||||
match operand {
|
match operand {
|
||||||
FlatSet::Elem(operand) => self
|
FlatSet::Elem(operand) => self
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue