Skip to content

Commit f1dbe6a

Browse files
Stabilize clinit wrapper function type parameters
Many accesses to the function type would add an ID_parameters if it is not there, which can cause inconsistencies in irep comparisons.
1 parent 4a9749f commit f1dbe6a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/java_bytecode/java_static_initializers.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ static void create_clinit_wrapper_symbols(
114114
symbolt wrapper_method_symbol;
115115
code_typet wrapper_method_type;
116116
wrapper_method_type.return_type() = void_typet();
117+
// Ensure the parameters property is there
118+
// to avoid trouble in irept comparisons
119+
wrapper_method_type.parameters();
117120
wrapper_method_symbol.name = clinit_wrapper_name(class_name);
118121
wrapper_method_symbol.pretty_name = wrapper_method_symbol.name;
119122
wrapper_method_symbol.base_name = "clinit_wrapper";

0 commit comments

Comments
 (0)