diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-04-24 11:24:04 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-04-24 11:24:04 -0700 |
| commit | 46ab981787a108ad4326c86aa2a6af4247e7191b (patch) | |
| tree | 6ae8c6ca2774ea4dba4f5db784efb8233c623421 /src/codegen.cpp | |
| parent | 4961910e7faf4df0a88d9571e894563f80613f7f (diff) | |
| download | zig-46ab981787a108ad4326c86aa2a6af4247e7191b.tar.gz zig-46ab981787a108ad4326c86aa2a6af4247e7191b.zip | |
add skeleton for union support
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 4 |
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; |
