| ... | ... | @@ -7198,8 +7198,13 @@ static void resolve_llvm_types_union(CodeGen *g, ZigType *union_type, ResolveSta |
| 7198 | 7198 | ZigType *most_aligned_union_member = union_type->data.unionation.most_aligned_union_member; |
| 7199 | 7199 | ZigType *tag_type = union_type->data.unionation.tag_type; |
| 7200 | 7200 | if (most_aligned_union_member == nullptr) { |
| 7201 | | union_type->llvm_type = get_llvm_type(g, tag_type); |
| 7202 | | union_type->llvm_di_type = get_llvm_di_type(g, tag_type); |
| 7201 | if (tag_type == nullptr) { |
| 7202 | union_type->llvm_type = g->builtin_types.entry_void->llvm_type; |
| 7203 | union_type->llvm_di_type = g->builtin_types.entry_void->llvm_di_type; |
| 7204 | } else { |
| 7205 | union_type->llvm_type = get_llvm_type(g, tag_type); |
| 7206 | union_type->llvm_di_type = get_llvm_di_type(g, tag_type); |
| 7207 | } |
| 7203 | 7208 | union_type->data.unionation.resolve_status = ResolveStatusLLVMFull; |
| 7204 | 7209 | return; |
| 7205 | 7210 | } |