| ... | @@ -22689,11 +22689,11 @@ static ZigValue *create_ptr_like_type_info(IrAnalyze *ira, ZigType *ptr_type_ent | ... | @@ -22689,11 +22689,11 @@ static ZigValue *create_ptr_like_type_info(IrAnalyze *ira, ZigType *ptr_type_ent |
| 22689 | // sentinel: var | 22689 | // sentinel: var |
| 22690 | ensure_field_index(result->type, "sentinel", 6); | 22690 | ensure_field_index(result->type, "sentinel", 6); |
| 22691 | fields[6]->special = ConstValSpecialStatic; | 22691 | fields[6]->special = ConstValSpecialStatic; |
| 22692 | fields[6]->type = get_optional_type(ira->codegen, attrs_type->data.pointer.child_type); | 22692 | if (attrs_type->data.pointer.child_type->id != ZigTypeIdOpaque) { |
| 22693 | if (attrs_type->data.pointer.sentinel != nullptr) { | 22693 | fields[6]->type = get_optional_type(ira->codegen, attrs_type->data.pointer.child_type); |
| 22694 | fields[6]->data.x_optional = attrs_type->data.pointer.sentinel; | 22694 | fields[6]->data.x_optional = attrs_type->data.pointer.sentinel; |
| 22695 | } else { | 22695 | } else { |
| 22696 | fields[6]->data.x_optional = nullptr; | 22696 | fields[6]->type = ira->codegen->builtin_types.entry_null; |
| 22697 | } | 22697 | } |
| 22698 | | 22698 | |
| 22699 | return result; | 22699 | return result; |