File tree 2 files changed +13
-3
lines changed
2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -346,7 +346,7 @@ void java_bytecode_convert_method_lazy(
346
346
method_symbol.pretty_name =
347
347
id2string (class_symbol.pretty_name )+" ." +
348
348
id2string (class_symbol.base_name )+" ()" ;
349
- member_type.set (ID_constructor, true );
349
+ member_type.set_is_constructor ( );
350
350
}
351
351
else
352
352
method_symbol.pretty_name =
@@ -538,7 +538,7 @@ void java_bytecode_convert_methodt::convert(
538
538
method_symbol.pretty_name = id2string (class_symbol.pretty_name ) + " ." +
539
539
id2string (class_symbol.base_name ) + " ()" ;
540
540
INVARIANT (
541
- member_type. get_bool (ID_constructor ),
541
+ code_type. get_is_constructor ( ),
542
542
" Member type should have already been marked as a constructor" );
543
543
}
544
544
else
@@ -1271,7 +1271,7 @@ codet java_bytecode_convert_methodt::convert_instructions(
1271
1271
{
1272
1272
if (needed_lazy_methods)
1273
1273
needed_lazy_methods->add_needed_class (classname);
1274
- code_type.set (ID_constructor, true );
1274
+ code_type.set_is_constructor ( );
1275
1275
}
1276
1276
else
1277
1277
code_type.set (ID_java_super_method_call, true );
Original file line number Diff line number Diff line change @@ -889,6 +889,16 @@ class code_typet:public typet
889
889
return set (ID_access, access );
890
890
}
891
891
892
+ bool get_is_constructor () const
893
+ {
894
+ return get_bool (ID_constructor);
895
+ }
896
+
897
+ void set_is_constructor ()
898
+ {
899
+ set (ID_constructor, true );
900
+ }
901
+
892
902
// this produces the list of parameter identifiers
893
903
std::vector<irep_idt> parameter_identifiers () const
894
904
{
You can’t perform that action at this time.
0 commit comments