aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-04-24 11:24:04 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-04-24 11:24:04 -0700
commit46ab981787a108ad4326c86aa2a6af4247e7191b (patch)
tree6ae8c6ca2774ea4dba4f5db784efb8233c623421 /src/codegen.cpp
parent4961910e7faf4df0a88d9571e894563f80613f7f (diff)
downloadzig-46ab981787a108ad4326c86aa2a6af4247e7191b.tar.gz
zig-46ab981787a108ad4326c86aa2a6af4247e7191b.zip
add skeleton for union support
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp4
1 files changed, 4 insertions, 0 deletions
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;