14
14
#include < cassert>
15
15
16
16
#include < util/arith_tools.h>
17
- #include < util/base_type.h>
18
17
#include < util/c_types.h>
19
18
#include < util/config.h>
20
19
#include < util/cprover_prefix.h>
@@ -1065,7 +1064,7 @@ void c_typecheck_baset::typecheck_expr_typecast(exprt &expr)
1065
1064
const typet expr_type=follow (expr.type ());
1066
1065
1067
1066
if (expr_type.id ()==ID_union &&
1068
- ! base_type_eq ( expr_type, op.type (), * this ) &&
1067
+ expr_type != op.type () &&
1069
1068
op.id ()!=ID_initializer_list)
1070
1069
{
1071
1070
// This is a GCC extension. It's either a 'temporary union',
@@ -1080,7 +1079,7 @@ void c_typecheck_baset::typecheck_expr_typecast(exprt &expr)
1080
1079
// we need to find a member with the right type
1081
1080
for (const auto &c : to_union_type (expr_type).components ())
1082
1081
{
1083
- if (base_type_eq ( c.type (), op.type (), * this ))
1082
+ if (c.type () == op.type ())
1084
1083
{
1085
1084
// found! build union constructor
1086
1085
union_exprt union_expr (c.get_name (), op, expr.type ());
@@ -1131,7 +1130,7 @@ void c_typecheck_baset::typecheck_expr_typecast(exprt &expr)
1131
1130
const typet op_type = op.type ();
1132
1131
1133
1132
// cast to same type?
1134
- if (base_type_eq ( expr_type, op_type, * this ) )
1133
+ if (expr_type == op_type )
1135
1134
return ; // it's ok
1136
1135
1137
1136
// vectors?
@@ -2516,8 +2515,8 @@ exprt c_typecheck_baset::do_special_functions(
2516
2515
expr.arguments ().front (), expr.arguments ().back ());
2517
2516
equality_expr.add_source_location ()=source_location;
2518
2517
2519
- if (! base_type_eq ( equality_expr.lhs ().type (),
2520
- equality_expr.rhs ().type (), * this ) )
2518
+ if (equality_expr.lhs ().type () !=
2519
+ equality_expr.rhs ().type ())
2521
2520
{
2522
2521
error ().source_location = f_op.source_location ();
2523
2522
error () << " equal expects two operands of same type" << eom;
0 commit comments