| ... | ... | @@ -2598,7 +2598,10 @@ pub const Object = struct { |
| 2598 | 2598 | defer gpa.free(name); |
| 2599 | 2599 | |
| 2600 | 2600 | const union_type = ip.loadUnionType(ty.toIntern()); |
| 2601 | | if (!union_type.haveFieldTypes(ip) or !ty.hasRuntimeBitsIgnoreComptime(mod)) { |
| 2601 | if (!union_type.haveFieldTypes(ip) or |
| 2602 | !ty.hasRuntimeBitsIgnoreComptime(mod) or |
| 2603 | !union_type.haveLayout(ip)) |
| 2604 | { |
| 2602 | 2605 | const debug_union_type = try o.makeEmptyNamespaceDebugType(owner_decl_index); |
| 2603 | 2606 | try o.debug_type_map.put(gpa, ty, debug_union_type); |
| 2604 | 2607 | return debug_union_type; |