We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57c5b3c commit a569e98Copy full SHA for a569e98
src/goto-programs/remove_virtual_functions.cpp
@@ -533,11 +533,7 @@ void remove_virtual_functions(goto_model_functiont &function)
533
class_hierarchyt class_hierarchy;
534
class_hierarchy(function.get_symbol_table());
535
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();
+ rvf.remove_virtual_functions(function.get_goto_function().body);
541
}
542
543
void remove_virtual_function(
0 commit comments