svlog: value: Migrate casts to MIR
@@ -321,12 +321,6 @@ fn const_expr<'gcx>(
);
Err(())
}
- // TODO: Casts are just transparent at the moment. That's pretty bad.
- hir::ExprKind::Cast(_, arg)
- | hir::ExprKind::CastSign(_, arg)
- | hir::ExprKind::CastSize(_, arg)
- | hir::ExprKind::Builtin(hir::BuiltinCall::Unsigned(arg))
- | hir::ExprKind::Builtin(hir::BuiltinCall::Signed(arg)) => cx.constant_value_of(arg, env),
_ => {
let mir = cx.mir_rvalue(expr.id, env);
Ok(const_mir(cx, mir))
