This commit is contained in:
gingerBill
2018-02-14 21:46:39 +00:00
parent 2e92d0c821
commit 6a85546b76
4 changed files with 51 additions and 9 deletions

View File

@@ -954,6 +954,14 @@ bool is_type_polymorphic_struct_specialized(Type *t) {
return false;
}
bool is_type_polymorphic_struct_unspecialized(Type *t) {
t = base_type(t);
if (t->kind == Type_Struct) {
return t->Struct.is_polymorphic && !t->Struct.is_poly_specialized;
}
return false;
}
bool is_type_polymorphic(Type *t) {
switch (t->kind) {