aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-02-07 02:20:36 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-02-07 02:20:36 -0700
commit7b00ed362c69fc7da6eea503417d1f54b667a64b (patch)
treebbee67ba2fd9669281832f19ef39df9588f068bb /src/analyze.cpp
parent642b38a5774c45271a709029de5827d6d305f8b3 (diff)
downloadzig-7b00ed362c69fc7da6eea503417d1f54b667a64b.tar.gz
zig-7b00ed362c69fc7da6eea503417d1f54b667a64b.zip
fix debug type of ptr and len fields of slices
Diffstat (limited to 'src/analyze.cpp')
-rw-r--r--src/analyze.cpp4
1 files changed, 2 insertions, 2 deletions
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,