aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-07-03 13:55:50 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-07-03 13:55:50 -0400
commita1359ac3abbb83f30719f596180f1e923da3a8f2 (patch)
tree194da04d4f7cf3be9795e8d2edab96ac1c1a31af /src/codegen.cpp
parent9daf0140e5a78802fd294bce8a9019f59bd89b61 (diff)
parent4bae87764fc455f4df8b9d96be856921b0dd97db (diff)
downloadzig-a1359ac3abbb83f30719f596180f1e923da3a8f2.tar.gz
zig-a1359ac3abbb83f30719f596180f1e923da3a8f2.zip
Merge branch 'rbscott-comptime-union-init'
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index da9a42c651..2399152546 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -5635,6 +5635,7 @@ static LLVMValueRef ir_render_instruction(CodeGen *g, IrExecutable *executable,
case IrInstructionIdRef:
case IrInstructionIdBitCastSrc:
case IrInstructionIdTestErrSrc:
+ case IrInstructionIdUnionInitNamedField:
zig_unreachable();
case IrInstructionIdDeclVarGen:
@@ -7419,6 +7420,7 @@ static void define_builtin_fns(CodeGen *g) {
create_builtin_fn(g, BuiltinFnIdFromBytes, "bytesToSlice", 2);
create_builtin_fn(g, BuiltinFnIdThis, "This", 0);
create_builtin_fn(g, BuiltinFnIdHasDecl, "hasDecl", 2);
+ create_builtin_fn(g, BuiltinFnIdUnionInit, "unionInit", 3);
}
static const char *bool_to_str(bool b) {