File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -321,6 +321,10 @@ void remove_virtual_functionst::get_child_functions_rec(
321
321
if (findit==class_hierarchy.class_map .end ())
322
322
return ;
323
323
324
+ const auto language = get_language_from_identifier (ns, this_id);
325
+ CHECK_RETURN (language);
326
+ const irep_idt root_base_class_type_name =
327
+ language->root_base_class_type ().get_identifier ();
324
328
for (const auto &child : findit->second .children )
325
329
{
326
330
// Skip if we have already visited this and we found a function call that
@@ -330,7 +334,7 @@ void remove_virtual_functionst::get_child_functions_rec(
330
334
it != entry_map.end () &&
331
335
!has_prefix (
332
336
id2string (it->second .symbol_expr .get_identifier ()),
333
- " java::java.lang.Object " ))
337
+ id2string (root_base_class_type_name) ))
334
338
{
335
339
continue ;
336
340
}
You can’t perform that action at this time.
0 commit comments