diff options
| author | Andreas T Jonsson <mail@andreasjonsson.se> | 2024-05-13 09:44:27 +0200 |
|---|---|---|
| committer | Andreas T Jonsson <mail@andreasjonsson.se> | 2024-05-13 09:44:27 +0200 |
| commit | 3e181af4097fe1d4ee76d21843ad7719304b6140 (patch) | |
| tree | f4f8e9025f839c8b18e7fe8977b9ef19de678dc0 /src/types.cpp | |
| parent | a9b94f401934612824f05f6abbe28c0da95be9c8 (diff) | |
| parent | 88528f76133304eeddd2f8046df304e25e6e98b1 (diff) | |
Merge branch 'netbsd' into netbsd-ci
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; } |