File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 16
16
17
17
#include < goto-programs/resolve_inherited_component.h>
18
18
19
+ #include < langapi/mode.h>
20
+ #include < langapi/language.h>
21
+
19
22
#include < util/c_types.h>
20
23
#include < util/prefix.h>
21
24
#include < util/type_eq.h>
@@ -317,6 +320,10 @@ void remove_virtual_functionst::get_child_functions_rec(
317
320
if (findit==class_hierarchy.class_map .end ())
318
321
return ;
319
322
323
+ const auto language = get_language_from_identifier (ns, this_id);
324
+ CHECK_RETURN (language);
325
+ const irep_idt root_base_class_type_name =
326
+ language->root_base_class_type ().get_identifier ();
320
327
for (const auto &child : findit->second .children )
321
328
{
322
329
// Skip if we have already visited this and we found a function call that
@@ -326,7 +333,7 @@ void remove_virtual_functionst::get_child_functions_rec(
326
333
it != entry_map.end () &&
327
334
!has_prefix (
328
335
id2string (it->second .symbol_expr .get_identifier ()),
329
- " java::java.lang.Object " ))
336
+ id2string (root_base_class_type_name) ))
330
337
{
331
338
continue ;
332
339
}
You can’t perform that action at this time.
0 commit comments