Fix error with polymorphic structs #279

This commit is contained in:
gingerBill
2018-11-17 10:05:35 +00:00
parent d035d48c8e
commit 3061bc8478
2 changed files with 18 additions and 16 deletions

View File

@@ -1126,7 +1126,7 @@ bool is_type_polymorphic(Type *t) {
return true;
case Type_Named:
return is_type_polymorphic_record(t->Named.base);
return is_type_polymorphic(t->Named.base);
case Type_Pointer:
return is_type_polymorphic(t->Pointer.elem);