File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change 16
16
#include < util/std_expr.h>
17
17
#include < util/symbol_table.h>
18
18
19
- #include < ansi-c/c_qualifiers.h>
20
-
21
19
#include " goto_functions.h"
22
20
23
21
#define LOG (message, irep ) \
@@ -786,16 +784,10 @@ bool remove_const_function_pointerst::is_const_expression(
786
784
// / arrays are implicitly const in C.
787
785
bool remove_const_function_pointerst::is_const_type (const typet &type) const
788
786
{
789
- c_qualifierst qualifers (type);
790
- if (type.id ()==ID_array)
791
- {
792
- c_qualifierst array_type_qualifers (type.subtype ());
793
- return qualifers.is_constant || array_type_qualifers.is_constant ;
794
- }
795
- else
796
- {
797
- return qualifers.is_constant ;
798
- }
787
+ if (type.id () == ID_array && type.subtype ().get_bool (ID_C_constant))
788
+ return true ;
789
+
790
+ return type.get_bool (ID_C_constant);
799
791
}
800
792
801
793
// / To extract the value of the specific component within a struct
You can’t perform that action at this time.
0 commit comments