mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
add skeleton for union support
This commit is contained in:
1 parent
4961910e7f
commit
46ab981787
10 files changed
+64
-7
No files matched your search
@@ -2972,6 +2972,10 @@ static LLVMValueRef gen_const_val(CodeGen *g, TypeTableEntry *type_entry, ConstE
|
||||
return LLVMConstNamedStruct(type_entry->type_ref, fields,
|
||||
type_entry->data.structure.gen_field_count);
|
||||
}
|
||||
case TypeTableEntryIdUnion:
|
||||
{
|
||||
zig_panic("TODO");
|
||||
}
|
||||
case TypeTableEntryIdArray:
|
||||
{
|
||||
TypeTableEntry *child_type = type_entry->data.array.child_type;
|
||||
|
||||
Reference in new issue
Block a user