mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
add int_type builtin function
This commit is contained in:
1 parent
50310cf9df
commit
6ff996f60f
5 files changed
+75
No files matched your search
@@ -540,6 +540,7 @@ static LLVMValueRef gen_builtin_fn_call_expr(CodeGen *g, AstNode *node) {
|
||||
case BuiltinFnIdImport:
|
||||
case BuiltinFnIdCImport:
|
||||
case BuiltinFnIdCompileErr:
|
||||
case BuiltinFnIdIntType:
|
||||
zig_unreachable();
|
||||
case BuiltinFnIdCtz:
|
||||
case BuiltinFnIdClz:
|
||||
@@ -4657,6 +4658,7 @@ static void define_builtin_fns(CodeGen *g) {
|
||||
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);
|
||||
create_builtin_fn_with_arg_count(g, BuiltinFnIdIntType, "int_type", 3);
|
||||
}
|
||||
|
||||
static void init(CodeGen *g, Buf *source_path) {
|
||||
|
||||
Reference in new issue
Block a user