We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edd216f commit a166cc2Copy full SHA for a166cc2
src/analyses/does_remove_const.cpp
@@ -13,7 +13,6 @@ Author: Diffblue Ltd.
13
14
#include <goto-programs/goto_program.h>
15
16
-#include <util/base_type.h>
17
#include <util/pointer_expr.h>
18
#include <util/std_code.h>
19
@@ -69,11 +68,11 @@ bool does_remove_constt::does_expr_lose_const(const exprt &expr) const
69
68
{
70
const typet &root_type=expr.type();
71
72
- // Look in each child that has the same base type as the root
+ // Look in each child that has the same type as the root
73
for(const exprt &op : expr.operands())
74
75
const typet &op_type=op.type();
76
- if(base_type_eq(op_type, root_type, ns))
+ if(op_type == root_type)
77
78
// Is this child more const-qualified than the root
79
if(!does_type_preserve_const_correctness(&root_type, &op_type))
0 commit comments