add skeleton for union support

This commit is contained in:
Andrew Kelley
2016-04-24 11:24:04 -07:00
parent 4961910e7f
commit 46ab981787
10 changed files with 64 additions and 7 deletions

View File

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