File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ Author: Diffblue Ltd.
13
13
14
14
#include < goto-programs/goto_program.h>
15
15
16
- #include < util/base_type.h>
17
16
#include < util/pointer_expr.h>
18
17
#include < util/std_code.h>
19
18
@@ -69,11 +68,11 @@ bool does_remove_constt::does_expr_lose_const(const exprt &expr) const
69
68
{
70
69
const typet &root_type=expr.type ();
71
70
72
- // Look in each child that has the same base type as the root
71
+ // Look in each child that has the same type as the root
73
72
for (const exprt &op : expr.operands ())
74
73
{
75
74
const typet &op_type=op.type ();
76
- if (base_type_eq ( op_type, root_type, ns) )
75
+ if (op_type == root_type )
77
76
{
78
77
// Is this child more const-qualified than the root
79
78
if (!does_type_preserve_const_correctness (&root_type, &op_type))
You can’t perform that action at this time.
0 commit comments