aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2020-03-04 10:55:34 +0100
committerAndrew Kelley <andrew@ziglang.org>2020-03-04 17:21:10 -0500
commit0c310f0fbf5ccbfff6c8235aa1a315589f9d8cf9 (patch)
tree44564a884b29411a7bc4cba7a95f1f374f5f164d /src/codegen.cpp
parent24fc69acad303d9049a99683d3bf1f41185d22db (diff)
downloadzig-0c310f0fbf5ccbfff6c8235aa1a315589f9d8cf9.tar.gz
zig-0c310f0fbf5ccbfff6c8235aa1a315589f9d8cf9.zip
ir: Implement @TypeOf with multiple arguments
Closes #439
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 51e2f4625e..ef567c27aa 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -8142,7 +8142,7 @@ static void define_builtin_fns(CodeGen *g) {
create_builtin_fn(g, BuiltinFnIdTypeInfo, "typeInfo", 1);
create_builtin_fn(g, BuiltinFnIdType, "Type", 1);
create_builtin_fn(g, BuiltinFnIdHasField, "hasField", 2);
- create_builtin_fn(g, BuiltinFnIdTypeof, "TypeOf", 1);
+ create_builtin_fn(g, BuiltinFnIdTypeof, "TypeOf", SIZE_MAX);
create_builtin_fn(g, BuiltinFnIdAddWithOverflow, "addWithOverflow", 4);
create_builtin_fn(g, BuiltinFnIdSubWithOverflow, "subWithOverflow", 4);
create_builtin_fn(g, BuiltinFnIdMulWithOverflow, "mulWithOverflow", 4);