@@ -2535,7 +2535,6 @@ code_blockt java_bytecode_convert_methodt::convert_putstatic(
2535
2535
2536
2536
save_stack_entries (
2537
2537
" stack_static_field" ,
2538
- symbol_expr.type (),
2539
2538
block,
2540
2539
bytecode_write_typet::STATIC_FIELD,
2541
2540
symbol_expr.get_identifier ());
@@ -2550,7 +2549,6 @@ code_blockt java_bytecode_convert_methodt::convert_putfield(
2550
2549
code_blockt block;
2551
2550
save_stack_entries (
2552
2551
" stack_field" ,
2553
- op[1 ].type (),
2554
2552
block,
2555
2553
bytecode_write_typet::FIELD,
2556
2554
arg0.get (ID_component_name));
@@ -2684,7 +2682,6 @@ code_blockt java_bytecode_convert_methodt::convert_iinc(
2684
2682
const exprt &locvar = variable (arg0, ' i' , address, NO_CAST);
2685
2683
save_stack_entries (
2686
2684
" stack_iinc" ,
2687
- java_int_type (),
2688
2685
block,
2689
2686
bytecode_write_typet::VARIABLE,
2690
2687
to_symbol_expr (locvar).get_identifier ());
@@ -2850,7 +2847,6 @@ code_blockt java_bytecode_convert_methodt::convert_store(
2850
2847
2851
2848
save_stack_entries (
2852
2849
" stack_store" ,
2853
- toassign.type (),
2854
2850
block,
2855
2851
bytecode_write_typet::VARIABLE,
2856
2852
var_name);
@@ -2884,7 +2880,7 @@ code_blockt java_bytecode_convert_methodt::convert_astore(
2884
2880
block.add_source_location () = location;
2885
2881
2886
2882
save_stack_entries (
2887
- " stack_astore" , element_type, block, bytecode_write_typet::ARRAY_REF, " " );
2883
+ " stack_astore" , block, bytecode_write_typet::ARRAY_REF, " " );
2888
2884
2889
2885
code_assignt array_put (element, op[2 ]);
2890
2886
array_put.add_source_location () = location;
@@ -3132,13 +3128,11 @@ irep_idt java_bytecode_convert_methodt::get_static_field(
3132
3128
// / Create temporary variables if a write instruction can have undesired side-
3133
3129
// / effects.
3134
3130
// / \param tmp_var_prefix: The prefix string to use for new temporary variables
3135
- // / \param tmp_var_type: The type of the temporary variable.
3136
3131
// / \param[out] block: The code block the assignment is added to if required.
3137
3132
// / \param write_type: The enumeration type of the write instruction.
3138
3133
// / \param identifier: The identifier of the symbol in the write instruction.
3139
3134
void java_bytecode_convert_methodt::save_stack_entries (
3140
3135
const std::string &tmp_var_prefix,
3141
- const typet &tmp_var_type,
3142
3136
code_blockt &block,
3143
3137
const bytecode_write_typet write_type,
3144
3138
const irep_idt &identifier)
0 commit comments