commit d0b59f20ab3285b11c5e8a8201991dc5fc90b3c9 (tree)
parent 0b6cf0aa637b5cd7551aca295832f06d56315921
Author: Andrew Kelley <superjoe30@gmail.com>
Date: Sun, 15 Jan 2017 23:27:14 -0500
fix llvm assertion failure for zero bits structs
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/analyze.cpp b/src/analyze.cpp
@@ -1362,6 +1362,7 @@ static void resolve_struct_type(CodeGen *g, TypeTableEntry *struct_type) {
if (struct_type->zero_bits) {
struct_type->type_ref = LLVMVoidType();
+ ZigLLVMReplaceTemporary(g->dbuilder, struct_type->di_type, g->builtin_types.entry_void->di_type);
struct_type->di_type = g->builtin_types.entry_void->di_type;
return;
}