| ... | @@ -30881,10 +30881,10 @@ static IrInstGen *ir_analyze_instruction_src(IrAnalyze *ira, IrInstSrcSrc *instr | ... | @@ -30881,10 +30881,10 @@ static IrInstGen *ir_analyze_instruction_src(IrAnalyze *ira, IrInstSrcSrc *instr |
| 30881 | return ira->codegen->invalid_inst_gen; | 30881 | return ira->codegen->invalid_inst_gen; |
| 30882 | } | 30882 | } |
| 30883 | | 30883 | |
| 30884 | ZigType *u8_ptr = get_pointer_to_type_extra( | 30884 | ZigType *u8_ptr = get_pointer_to_type_extra2( |
| 30885 | ira->codegen, ira->codegen->builtin_types.entry_u8, | 30885 | ira->codegen, ira->codegen->builtin_types.entry_u8, |
| 30886 | true, false, PtrLenUnknown, | 30886 | true, false, PtrLenUnknown, |
| 30887 | 0, 0, 0, false); | 30887 | 0, 0, 0, false, VECTOR_INDEX_NONE, nullptr, ira->codegen->intern.for_zero_byte()); |
| 30888 | ZigType *u8_slice = get_slice_type(ira->codegen, u8_ptr); | 30888 | ZigType *u8_slice = get_slice_type(ira->codegen, u8_ptr); |
| 30889 | | 30889 | |
| 30890 | ZigType *source_location_type = get_builtin_type(ira->codegen, "SourceLocation"); | 30890 | ZigType *source_location_type = get_builtin_type(ira->codegen, "SourceLocation"); |
| ... | @@ -30899,23 +30899,23 @@ static IrInstGen *ir_analyze_instruction_src(IrAnalyze *ira, IrInstSrcSrc *instr | ... | @@ -30899,23 +30899,23 @@ static IrInstGen *ir_analyze_instruction_src(IrAnalyze *ira, IrInstSrcSrc *instr |
| 30899 | ZigValue **fields = alloc_const_vals_ptrs(ira->codegen, 4); | 30899 | ZigValue **fields = alloc_const_vals_ptrs(ira->codegen, 4); |
| 30900 | result->data.x_struct.fields = fields; | 30900 | result->data.x_struct.fields = fields; |
| 30901 | | 30901 | |
| 30902 | // file: []const u8 | 30902 | // file: [:0]const u8 |
| 30903 | ensure_field_index(source_location_type, "file", 0); | 30903 | ensure_field_index(source_location_type, "file", 0); |
| 30904 | fields[0]->special = ConstValSpecialStatic; | 30904 | fields[0]->special = ConstValSpecialStatic; |
| 30905 | fields[0]->type = u8_slice; | | |
| 30906 | | 30905 | |
| 30907 | ZigType *import = instruction->base.base.source_node->owner; | 30906 | ZigType *import = instruction->base.base.source_node->owner; |
| 30908 | Buf *path = import->data.structure.root_struct->path; | 30907 | Buf *path = import->data.structure.root_struct->path; |
| 30909 | ZigValue *file_name = create_const_str_lit(ira->codegen, path)->data.x_ptr.data.ref.pointee; | 30908 | ZigValue *file_name = create_const_str_lit(ira->codegen, path)->data.x_ptr.data.ref.pointee; |
| 30910 | init_const_slice(ira->codegen, fields[0], file_name, 0, buf_len(path), true); | 30909 | init_const_slice(ira->codegen, fields[0], file_name, 0, buf_len(path), true); |
| | 30910 | fields[0]->type = u8_slice; |
| 30911 | | 30911 | |
| 30912 | // fn_name: []const u8 | 30912 | // fn_name: [:0]const u8 |
| 30913 | ensure_field_index(source_location_type, "fn_name", 1); | 30913 | ensure_field_index(source_location_type, "fn_name", 1); |
| 30914 | fields[1]->special = ConstValSpecialStatic; | 30914 | fields[1]->special = ConstValSpecialStatic; |
| 30915 | fields[1]->type = u8_slice; | | |
| 30916 | | 30915 | |
| 30917 | ZigValue *fn_name = create_const_str_lit(ira->codegen, &fn_entry->symbol_name)->data.x_ptr.data.ref.pointee; | 30916 | ZigValue *fn_name = create_const_str_lit(ira->codegen, &fn_entry->symbol_name)->data.x_ptr.data.ref.pointee; |
| 30918 | init_const_slice(ira->codegen, fields[1], fn_name, 0, buf_len(&fn_entry->symbol_name), true); | 30917 | init_const_slice(ira->codegen, fields[1], fn_name, 0, buf_len(&fn_entry->symbol_name), true); |
| | 30918 | fields[1]->type = u8_slice; |
| 30919 | | 30919 | |
| 30920 | // line: u32 | 30920 | // line: u32 |
| 30921 | ensure_field_index(source_location_type, "line", 2); | 30921 | ensure_field_index(source_location_type, "line", 2); |