aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-01-30 15:30:03 -0500
committerAndrew Kelley <andrew@ziglang.org>2020-01-30 15:30:38 -0500
commit58c97b3561c39036c2db1875d5a1b5125dd580ef (patch)
tree4a403f2978cc87c1d8db84ddd8c53b97c45ff6d7 /src/analyze.cpp
parentcbd42e44d6321e59c7e89019e28bcf5299210795 (diff)
downloadzig-58c97b3561c39036c2db1875d5a1b5125dd580ef.tar.gz
zig-58c97b3561c39036c2db1875d5a1b5125dd580ef.zip
fix llvm assertion with debug info for vectors
Diffstat (limited to 'src/analyze.cpp')
-rw-r--r--src/analyze.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp
index 2210a17da3..8be23ad82a 100644
--- a/src/analyze.cpp
+++ b/src/analyze.cpp
@@ -9205,7 +9205,7 @@ static void resolve_llvm_types(CodeGen *g, ZigType *type, ResolveStatus wanted_r
if (type->llvm_di_type != nullptr) return;
type->llvm_type = LLVMVectorType(get_llvm_type(g, type->data.vector.elem_type), type->data.vector.len);
- type->llvm_di_type = ZigLLVMDIBuilderCreateVectorType(g->dbuilder, type->size_in_bits,
+ type->llvm_di_type = ZigLLVMDIBuilderCreateVectorType(g->dbuilder, 8 * type->abi_size,
type->abi_align, get_llvm_di_type(g, type->data.vector.elem_type), type->data.vector.len);
return;
}