File tree 1 file changed +8
-1
lines changed 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>
@@ -333,6 +336,10 @@ void remove_virtual_functionst::get_child_functions_rec(
333
336
if (findit==class_hierarchy.class_map .end ())
334
337
return ;
335
338
339
+ const auto language = get_language_from_identifier (symbol_table, this_id);
340
+ CHECK_RETURN (language);
341
+ const irep_idt root_base_class_type_name =
342
+ language->root_base_class_type ().get_identifier ();
336
343
for (const auto &child : findit->second .children )
337
344
{
338
345
// Skip if we have already visited this and we found a function call that
@@ -342,7 +349,7 @@ void remove_virtual_functionst::get_child_functions_rec(
342
349
it != entry_map.end () &&
343
350
!has_prefix (
344
351
id2string (it->second .symbol_expr .get_identifier ()),
345
- " java::java.lang.Object " ))
352
+ id2string (root_base_class_type_name) ))
346
353
{
347
354
continue ;
348
355
}
You can’t perform that action at this time.
0 commit comments