mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
fix llvm assertion failure for zero bits structs
This commit is contained in:
parent
0b6cf0aa63
commit
d0b59f20ab
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user