Skip to content

Commit a569e98

Browse files
committed
remove_virtual_functions: Do not redundantly re-update location numbers
1 parent 57c5b3c commit a569e98

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/goto-programs/remove_virtual_functions.cpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -533,11 +533,7 @@ void remove_virtual_functions(goto_model_functiont &function)
533533
class_hierarchyt class_hierarchy;
534534
class_hierarchy(function.get_symbol_table());
535535
remove_virtual_functionst rvf(function.get_symbol_table(), class_hierarchy);
536-
bool changed = rvf.remove_virtual_functions(
537-
function.get_goto_function().body);
538-
// Give fresh location numbers to `function`, in case it has grown:
539-
if(changed)
540-
function.compute_location_numbers();
536+
rvf.remove_virtual_functions(function.get_goto_function().body);
541537
}
542538

543539
void remove_virtual_function(

0 commit comments

Comments
 (0)