| ... | ... | @@ -24261,12 +24261,6 @@ static Stage1AirInst *ir_analyze_instruction_src(IrAnalyze *ira, Stage1ZirInstSr |
| 24261 | 24261 | return ira->codegen->invalid_inst_gen; |
| 24262 | 24262 | } |
| 24263 | 24263 | |
| 24264 | | ZigType *u8_ptr = get_pointer_to_type_extra2( |
| 24265 | | ira->codegen, ira->codegen->builtin_types.entry_u8, |
| 24266 | | true, false, PtrLenUnknown, |
| 24267 | | 0, 0, 0, false, VECTOR_INDEX_NONE, nullptr, ira->codegen->intern.for_zero_byte()); |
| 24268 | | ZigType *u8_slice = get_slice_type(ira->codegen, u8_ptr); |
| 24269 | | |
| 24270 | 24264 | ZigType *source_location_type = get_builtin_type(ira->codegen, "SourceLocation"); |
| 24271 | 24265 | if (type_resolve(ira->codegen, source_location_type, ResolveStatusSizeKnown)) { |
| 24272 | 24266 | zig_unreachable(); |
| ... | ... | @@ -24286,18 +24280,16 @@ static Stage1AirInst *ir_analyze_instruction_src(IrAnalyze *ira, Stage1ZirInstSr |
| 24286 | 24280 | ZigType *import = instruction->base.source_node->owner; |
| 24287 | 24281 | RootStruct *root_struct = import->data.structure.root_struct; |
| 24288 | 24282 | Buf *path = root_struct->path; |
| 24289 | | ZigValue *file_name = create_const_str_lit(ira->codegen, path)->data.x_ptr.data.ref.pointee; |
| 24290 | | init_const_slice(ira->codegen, fields[0], file_name, 0, buf_len(path), true, nullptr); |
| 24291 | | fields[0]->type = u8_slice; |
| 24283 | fields[0] = create_sentineled_str_lit( |
| 24284 | ira->codegen, path, |
| 24285 | ira->codegen->intern.for_zero_byte()); |
| 24292 | 24286 | |
| 24293 | 24287 | // fn_name: [:0]const u8 |
| 24294 | 24288 | ensure_field_index(source_location_type, "fn_name", 1); |
| 24295 | 24289 | fields[1]->special = ConstValSpecialStatic; |
| 24296 | | |
| 24297 | | ZigValue *fn_name = create_const_str_lit(ira->codegen, &fn_entry->symbol_name)->data.x_ptr.data.ref.pointee; |
| 24298 | | init_const_slice(ira->codegen, fields[1], fn_name, 0, buf_len(&fn_entry->symbol_name), true, nullptr); |
| 24299 | | fields[1]->type = u8_slice; |
| 24300 | | |
| 24290 | fields[1] = create_sentineled_str_lit( |
| 24291 | ira->codegen, &fn_entry->symbol_name, |
| 24292 | ira->codegen->intern.for_zero_byte()); |
| 24301 | 24293 | |
| 24302 | 24294 | TokenLoc tok_loc = root_struct->token_locs[instruction->base.source_node->main_token]; |
| 24303 | 24295 | |