aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-05-14 18:54:37 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-05-14 18:54:37 -0700
commit6ae6b5f5b546ab63311b6b08281f5962c9d24667 (patch)
treed88b267fdfe0428bad29a599e69f80c8baa2dbba /src/codegen.cpp
parent76f909edebf86a5d46d24a9dcf897f2cc3ded86d (diff)
downloadzig-6ae6b5f5b546ab63311b6b08281f5962c9d24667.tar.gz
zig-6ae6b5f5b546ab63311b6b08281f5962c9d24667.zip
add compile_err builtin
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 f42cf5a1a0..b8ffb1869c 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -539,6 +539,7 @@ static LLVMValueRef gen_builtin_fn_call_expr(CodeGen *g, AstNode *node) {
case BuiltinFnIdCUndef:
case BuiltinFnIdImport:
case BuiltinFnIdCImport:
+ case BuiltinFnIdCompileErr:
zig_unreachable();
case BuiltinFnIdCtz:
case BuiltinFnIdClz:
@@ -4655,6 +4656,7 @@ static void define_builtin_fns(CodeGen *g) {
create_builtin_fn_with_arg_count(g, BuiltinFnIdFence, "fence", 1);
create_builtin_fn_with_arg_count(g, BuiltinFnIdDivExact, "div_exact", 2);
create_builtin_fn_with_arg_count(g, BuiltinFnIdTruncate, "truncate", 2);
+ create_builtin_fn_with_arg_count(g, BuiltinFnIdCompileErr, "compile_err", 1);
}
static void init(CodeGen *g, Buf *source_path) {