From 46ab981787a108ad4326c86aa2a6af4247e7191b Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 24 Apr 2016 11:24:04 -0700 Subject: add skeleton for union support --- src/codegen.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/codegen.cpp') diff --git a/src/codegen.cpp b/src/codegen.cpp index 394ab398bb..26ccb77d7f 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -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; -- cgit v1.2.3