add skeleton for union support

This commit is contained in:
Andrew Kelley committed 2016-04-24 11:24:04 -07:00
1 parent 4961910e7f
commit 46ab981787
10 files changed
+64 -7

No files matched your search

+4
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;