diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-01-20 02:16:36 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-01-20 02:16:36 -0700 |
| commit | 961adc0909feb1d1b49ca18bdf555f6fc757a342 (patch) | |
| tree | 59b611fab3bed1923be9d4ac67e10419072760f3 /src/codegen.cpp | |
| parent | ad9759bc8e993364490d7268d491620ee4a2cc24 (diff) | |
| parent | f0f56a4a9bd416d4d6ecf9ff4766f70926715aa9 (diff) | |
| download | zig-961adc0909feb1d1b49ca18bdf555f6fc757a342.tar.gz zig-961adc0909feb1d1b49ca18bdf555f6fc757a342.zip | |
Merge branch 'master' of github.com:andrewrk/zig
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index 07c69ecc90..64f7f24d68 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -315,7 +315,7 @@ static LLVMValueRef gen_builtin_fn_call_expr(CodeGen *g, AstNode *node) { zig_unreachable(); } } - case BuiltinFnIdValueCount: + case BuiltinFnIdMemberCount: { assert(node->data.fn_call_expr.params.length == 1); AstNode *type_node = node->data.fn_call_expr.params.at(0); @@ -2620,7 +2620,7 @@ static void define_builtin_fns(CodeGen *g) { create_builtin_fn_with_arg_count(g, BuiltinFnIdSizeof, "sizeof", 1); create_builtin_fn_with_arg_count(g, BuiltinFnIdMaxValue, "max_value", 1); create_builtin_fn_with_arg_count(g, BuiltinFnIdMinValue, "min_value", 1); - create_builtin_fn_with_arg_count(g, BuiltinFnIdValueCount, "value_count", 1); + create_builtin_fn_with_arg_count(g, BuiltinFnIdMemberCount, "member_count", 1); create_builtin_fn_with_arg_count(g, BuiltinFnIdTypeof, "typeof", 1); create_builtin_fn_with_arg_count(g, BuiltinFnIdAddWithOverflow, "add_with_overflow", 4); create_builtin_fn_with_arg_count(g, BuiltinFnIdSubWithOverflow, "sub_with_overflow", 4); |
