From 7b00ed362c69fc7da6eea503417d1f54b667a64b Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 7 Feb 2016 02:20:36 -0700 Subject: fix debug type of ptr and len fields of slices --- src/analyze.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/analyze.cpp') diff --git a/src/analyze.cpp b/src/analyze.cpp index 18012fa7a2..23e798a3ef 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -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, -- cgit v1.2.3