Skip to content

Commit 70d9432

Browse files
author
Daniel Kroening
authored
Merge pull request #3337 from tautschnig/vs-tmp_var-type
Remove unused parameter tmp_var_type from save_stack_entries [blocks: #2310]
2 parents d02b96f + bf84079 commit 70d9432

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

jbmc/src/java_bytecode/java_bytecode_convert_method.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2535,7 +2535,6 @@ code_blockt java_bytecode_convert_methodt::convert_putstatic(
25352535

25362536
save_stack_entries(
25372537
"stack_static_field",
2538-
symbol_expr.type(),
25392538
block,
25402539
bytecode_write_typet::STATIC_FIELD,
25412540
symbol_expr.get_identifier());
@@ -2550,7 +2549,6 @@ code_blockt java_bytecode_convert_methodt::convert_putfield(
25502549
code_blockt block;
25512550
save_stack_entries(
25522551
"stack_field",
2553-
op[1].type(),
25542552
block,
25552553
bytecode_write_typet::FIELD,
25562554
arg0.get(ID_component_name));
@@ -2684,7 +2682,6 @@ code_blockt java_bytecode_convert_methodt::convert_iinc(
26842682
const exprt &locvar = variable(arg0, 'i', address, NO_CAST);
26852683
save_stack_entries(
26862684
"stack_iinc",
2687-
java_int_type(),
26882685
block,
26892686
bytecode_write_typet::VARIABLE,
26902687
to_symbol_expr(locvar).get_identifier());
@@ -2850,7 +2847,6 @@ code_blockt java_bytecode_convert_methodt::convert_store(
28502847

28512848
save_stack_entries(
28522849
"stack_store",
2853-
toassign.type(),
28542850
block,
28552851
bytecode_write_typet::VARIABLE,
28562852
var_name);
@@ -2884,7 +2880,7 @@ code_blockt java_bytecode_convert_methodt::convert_astore(
28842880
block.add_source_location() = location;
28852881

28862882
save_stack_entries(
2887-
"stack_astore", element_type, block, bytecode_write_typet::ARRAY_REF, "");
2883+
"stack_astore", block, bytecode_write_typet::ARRAY_REF, "");
28882884

28892885
code_assignt array_put(element, op[2]);
28902886
array_put.add_source_location() = location;
@@ -3132,13 +3128,11 @@ irep_idt java_bytecode_convert_methodt::get_static_field(
31323128
/// Create temporary variables if a write instruction can have undesired side-
31333129
/// effects.
31343130
/// \param tmp_var_prefix: The prefix string to use for new temporary variables
3135-
/// \param tmp_var_type: The type of the temporary variable.
31363131
/// \param[out] block: The code block the assignment is added to if required.
31373132
/// \param write_type: The enumeration type of the write instruction.
31383133
/// \param identifier: The identifier of the symbol in the write instruction.
31393134
void java_bytecode_convert_methodt::save_stack_entries(
31403135
const std::string &tmp_var_prefix,
3141-
const typet &tmp_var_type,
31423136
code_blockt &block,
31433137
const bytecode_write_typet write_type,
31443138
const irep_idt &identifier)

jbmc/src/java_bytecode/java_bytecode_convert_method_class.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,6 @@ class java_bytecode_convert_methodt:public messaget
293293

294294
void save_stack_entries(
295295
const std::string &,
296-
const typet &,
297296
code_blockt &,
298297
const bytecode_write_typet,
299298
const irep_idt &);

0 commit comments

Comments
 (0)