Commit b4ab48cf authored by gsamain's avatar gsamain Committed by Xavier Thompson

Cpp: Fix CppClassType is_subclass crashing with types without base classes

parent f0d21189
......@@ -3943,6 +3943,7 @@ class CppClassType(CType):
def is_subclass(self, other_type):
if self.same_as_resolved_type(other_type):
return 1
if self.base_classes:
for base_class in self.base_classes:
if base_class.is_subclass(other_type):
return 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment