mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
Fixes initialization of anonymous structs. Bump version 0.2.11
This commit is contained in:
committed by
Christoffer Lerno
parent
ca21b1daac
commit
ea5d7cd2e7
@@ -208,6 +208,7 @@ LLVMValueRef llvm_emit_const_initializer(GenContext *c, ConstInitializer *const_
|
||||
Decl *decl = const_init->type->decl;
|
||||
Decl **members = decl->strukt.members;
|
||||
uint32_t count = vec_size(members);
|
||||
if (decl->decl_kind == DECL_UNION && count) count = 1;
|
||||
LLVMValueRef *entries = NULL;
|
||||
bool was_modified = false;
|
||||
for (MemberIndex i = 0; i < count; i++)
|
||||
|
||||
Reference in New Issue
Block a user