| ... | ... | @@ -7687,8 +7687,13 @@ static void resolve_llvm_types_union(CodeGen *g, ZigType *union_type, ResolveSta |
| 7687 | 7687 | ZigType *tag_type = union_type->data.unionation.tag_type; |
| 7688 | 7688 | uint32_t gen_field_count = union_type->data.unionation.gen_field_count; |
| 7689 | 7689 | if (gen_field_count == 0) { |
| 7690 | | union_type->llvm_type = get_llvm_type(g, tag_type); |
| 7691 | | union_type->llvm_di_type = get_llvm_di_type(g, tag_type); |
| 7690 | if (tag_type == nullptr) { |
| 7691 | union_type->llvm_type = g->builtin_types.entry_void->llvm_type; |
| 7692 | union_type->llvm_di_type = g->builtin_types.entry_void->llvm_di_type; |
| 7693 | } else { |
| 7694 | union_type->llvm_type = get_llvm_type(g, tag_type); |
| 7695 | union_type->llvm_di_type = get_llvm_di_type(g, tag_type); |
| 7696 | } |
| 7692 | 7697 | union_type->data.unionation.resolve_status = ResolveStatusLLVMFull; |
| 7693 | 7698 | return; |
| 7694 | 7699 | } |