File tree 1 file changed +6
-9
lines changed
1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -2638,10 +2638,9 @@ inline shift_exprt &to_shift_expr(exprt &expr)
2638
2638
return static_cast <shift_exprt &>(expr);
2639
2639
}
2640
2640
2641
- // template<> inline bool check_expr_type<shift_exprt>(const exprt &base)
2642
- // {
2643
- // return true;
2644
- // }
2641
+ // The to_*_expr function for this type doesn't do any checks before casting,
2642
+ // therefore the implementation is essentially a static_cast.
2643
+ // Enabling expr_dynamic_cast would hide this; instead use static_cast directly.
2645
2644
// inline void validate_expr(const shift_exprt &value)
2646
2645
// {
2647
2646
// validate_operands(value, 2, "Shifts must have two operands");
@@ -4223,11 +4222,9 @@ inline ieee_float_op_exprt &to_ieee_float_op_expr(exprt &expr)
4223
4222
return static_cast <ieee_float_op_exprt &>(expr);
4224
4223
}
4225
4224
4226
- // template<>
4227
- // inline bool check_expr_type<ieee_float_op_exprt>(const exprt &base)
4228
- // {
4229
- // return true;
4230
- // }
4225
+ // The to_*_expr function for this type doesn't do any checks before casting,
4226
+ // therefore the implementation is essentially a static_cast.
4227
+ // Enabling expr_dynamic_cast would hide this; instead use static_cast directly.
4231
4228
// template<>
4232
4229
// inline void validate_expr<ieee_float_op_exprt>(
4233
4230
// const ieee_float_op_exprt &value)
You can’t perform that action at this time.
0 commit comments