fix llvm assertion failure for zero bits structs

master
Andrew Kelley 2017-01-15 23:27:14 -05:00
parent 0b6cf0aa63
commit d0b59f20ab
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}