File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -312,8 +312,7 @@ static void infer_opaque_type_fields(
312
312
+ " ' (which was missing a field '" + id2string (component_name)
313
313
+ " ' referenced from method '" + id2string (method.name )
314
314
+ " ') should have an opaque superclass" );
315
- const symbol_typet &superclass_type =
316
- to_symbol_type (class_type->bases ().front ().type ());
315
+ const auto &superclass_type = class_type->bases ().front ().type ();
317
316
class_symbol_id = superclass_type.get_identifier ();
318
317
class_type = &to_class_type (ns.follow (superclass_type));
319
318
}
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ void class_hierarchy_grapht::populate(const symbol_tablet &symbol_table)
47
47
48
48
for (const auto &base : struct_type.bases ())
49
49
{
50
- const irep_idt &parent = to_symbol_type ( base.type () ).get_identifier ();
50
+ const irep_idt &parent = base.type ().get_identifier ();
51
51
if (!parent.empty ())
52
52
{
53
53
const auto parent_node_it = nodes_by_name.find (parent);
@@ -159,7 +159,7 @@ void class_hierarchyt::operator()(const symbol_tablet &symbol_table)
159
159
160
160
for (const auto &base : struct_type.bases ())
161
161
{
162
- const irep_idt &parent = to_symbol_type ( base.type () ).get_identifier ();
162
+ const irep_idt &parent = base.type ().get_identifier ();
163
163
if (parent.empty ())
164
164
continue ;
165
165
You can’t perform that action at this time.
0 commit comments