File tree 3 files changed +2
-10
lines changed
3 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -5987,9 +5987,7 @@ bool Parser::rNewDeclarator(typet &decl)
5987
5987
if (lex.get_token (cb)!=' ]' )
5988
5988
return false ;
5989
5989
5990
- array_typet array_type;
5991
- array_type.size ().swap (expr);
5992
- array_type.subtype ().swap (decl);
5990
+ array_typet array_type (decl, expr);
5993
5991
set_location (array_type, ob);
5994
5992
5995
5993
decl.swap (array_type);
Original file line number Diff line number Diff line change @@ -791,9 +791,7 @@ void string_instrumentationt::do_strerror(
791
791
new_symbol_size.is_lvalue =true ;
792
792
new_symbol_size.is_static_lifetime =true ;
793
793
794
- array_typet type;
795
- type.subtype ()=char_type ();
796
- type.size ()=new_symbol_size.symbol_expr ();
794
+ array_typet type (char_type (), new_symbol_size.symbol_expr ());
797
795
symbolt new_symbol_buf;
798
796
new_symbol_buf.mode =ID_C;
799
797
new_symbol_buf.type =type;
Original file line number Diff line number Diff line change @@ -972,10 +972,6 @@ inline code_typet &to_code_type(typet &type)
972
972
class array_typet :public type_with_subtypet
973
973
{
974
974
public:
975
- array_typet ():type_with_subtypet(ID_array)
976
- {
977
- }
978
-
979
975
array_typet (
980
976
const typet &_subtype,
981
977
const exprt &_size):type_with_subtypet(ID_array, _subtype)
You can’t perform that action at this time.
0 commit comments