diff options
| author | Robert Scott <keyboard.operator@gmail.com> | 2019-05-09 02:28:14 -0700 |
|---|---|---|
| committer | Robert Scott <keyboard.operator@gmail.com> | 2019-05-24 01:48:45 -0700 |
| commit | 9b7ad124810e4a3df964927ace449502daa167f9 (patch) | |
| tree | 62a6674b3a255fcc76f464029f5b5d2a6cb4d9f3 /src/codegen.cpp | |
| parent | 163a8e98bc04ea955ee54d5905436ffac34c93a2 (diff) | |
| download | zig-9b7ad124810e4a3df964927ace449502daa167f9.tar.gz zig-9b7ad124810e4a3df964927ace449502daa167f9.zip | |
Implement @unionInit
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index 3a34894bb3..39a8c194ac 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -5616,6 +5616,7 @@ static LLVMValueRef ir_render_instruction(CodeGen *g, IrExecutable *executable, case IrInstructionIdLoadPtr: case IrInstructionIdBitCast: case IrInstructionIdGlobalAsm: + case IrInstructionIdUnionInit2: zig_unreachable(); case IrInstructionIdDeclVarGen: @@ -7409,6 +7410,7 @@ static void define_builtin_fns(CodeGen *g) { create_builtin_fn(g, BuiltinFnIdToBytes, "sliceToBytes", 1); create_builtin_fn(g, BuiltinFnIdFromBytes, "bytesToSlice", 2); create_builtin_fn(g, BuiltinFnIdThis, "This", 0); + create_builtin_fn(g, BuiltinFnIdUnionInit, "unionInit", 3); } static const char *bool_to_str(bool b) { |
