diff options
| author | Andreas T Jonsson <mail@andreasjonsson.se> | 2024-05-13 09:21:32 +0200 |
|---|---|---|
| committer | Andreas T Jonsson <mail@andreasjonsson.se> | 2024-05-13 09:21:32 +0200 |
| commit | 5d82f0cad5e0500d577bb03e1c175716d4d8b995 (patch) | |
| tree | 86b4662246c85cfa2a58ee22d101cc8ffc14df54 /src/types.cpp | |
| parent | f428e30211c3113ac7c7918f9a0f5c03cc7b4669 (diff) | |
| parent | 1183f4794b5bd3f1afddbb351c941a8a617a085f (diff) | |
Merge branch 'master' into netbsd
Diffstat (limited to 'src/types.cpp')
| -rw-r--r-- | src/types.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/types.cpp b/src/types.cpp index 30e009086..47ed86f7a 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -2100,8 +2100,8 @@ gb_internal bool is_type_polymorphic_record_unspecialized(Type *t) { t = base_type(t); if (t->kind == Type_Struct) { return t->Struct.is_polymorphic && !t->Struct.is_poly_specialized; - } else if (t->kind == Type_Struct) { - return t->Struct.is_polymorphic && !t->Struct.is_poly_specialized; + } else if (t->kind == Type_Union) { + return t->Union.is_polymorphic && !t->Union.is_poly_specialized; } return false; } |