Skip to content

Commit 4be7670

Browse files
committed
JBMC: don't recompute class hierarchy per function
We already have a class_hierarchyt for use with other classes, just pass it in to avoid pointless recomputation.
1 parent 7c43d46 commit 4be7670

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jbmc/src/jbmc/jbmc_parse_options.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ void jbmc_parse_optionst::process_goto_function(
753753
*class_hierarchy,
754754
ui_message_handler);
755755
// Java virtual functions -> explicit dispatch tables:
756-
remove_virtual_functions(function);
756+
remove_virtual_functions(function, *class_hierarchy);
757757

758758
auto function_is_stub = [&symbol_table, &model](const irep_idt &id) {
759759
return symbol_table.lookup_ref(id).value.is_nil() &&

0 commit comments

Comments
 (0)