We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07fa10e commit abdbbbcCopy full SHA for abdbbbc
src/util/expr_util.cpp
@@ -174,6 +174,10 @@ bool has_subtype(
174
push_if_not_visited(ns.follow(top));
175
else if(top.id() == ID_c_enum_tag)
176
push_if_not_visited(ns.follow_tag(to_c_enum_tag_type(top)));
177
+ else if(top.id() == ID_struct_tag)
178
+ push_if_not_visited(ns.follow_tag(to_struct_tag_type(top)));
179
+ else if(top.id() == ID_union_tag)
180
+ push_if_not_visited(ns.follow_tag(to_union_tag_type(top)));
181
else if(top.id() == ID_struct || top.id() == ID_union)
182
{
183
for(const auto &comp : to_struct_union_type(top).components())
0 commit comments