fix debug type of ptr and len fields of slices

This commit is contained in:
Andrew Kelley 2016-02-07 02:20:36 -07:00
parent 642b38a577
commit 7b00ed362c

View File

@ -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,