mirror of
https://github.com/ziglang/zig.git
synced 2026-02-16 14:28:57 +00:00
fix debug type of ptr and len fields of slices
This commit is contained in:
parent
642b38a577
commit
7b00ed362c
@ -493,13 +493,13 @@ static TypeTableEntry *get_slice_type(CodeGen *g, TypeTableEntry *child_type, bo
|
||||
ptr_debug_size_in_bits,
|
||||
ptr_debug_align_in_bits,
|
||||
ptr_offset_in_bits,
|
||||
0, child_type->di_type),
|
||||
0, pointer_type->di_type),
|
||||
LLVMZigCreateDebugMemberType(g->dbuilder, LLVMZigTypeToScope(entry->di_type),
|
||||
"len", di_file, line,
|
||||
len_debug_size_in_bits,
|
||||
len_debug_align_in_bits,
|
||||
len_offset_in_bits,
|
||||
0, child_type->di_type),
|
||||
0, isize_type->di_type),
|
||||
};
|
||||
LLVMZigDIType *replacement_di_type = LLVMZigCreateDebugStructType(g->dbuilder,
|
||||
compile_unit_scope,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user