aboutsummaryrefslogtreecommitdiff
path: root/src/AstGen.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-12-10 06:14:57 -0500
committerGitHub <noreply@github.com>2022-12-10 06:14:57 -0500
commit7637ac584fc2cee95dc5a20f51844b72fc7ecc82 (patch)
tree92d425bd0fccd34472453fa38c0cd721612023ea /src/AstGen.zig
parente4874d842ec3a771a5c438b4c48020a74c221935 (diff)
parent89d1ccc477c1dbc8bb8d13ad2598ef0190c25898 (diff)
downloadzig-7637ac584fc2cee95dc5a20f51844b72fc7ecc82.tar.gz
zig-7637ac584fc2cee95dc5a20f51844b72fc7ecc82.zip
Merge pull request #13821 from Vexu/eliminate-bound-fn
Eliminate `BoundFn` type from the language
Diffstat (limited to 'src/AstGen.zig')
-rw-r--r--src/AstGen.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/AstGen.zig b/src/AstGen.zig
index c9f44a6216..021990883a 100644
--- a/src/AstGen.zig
+++ b/src/AstGen.zig
@@ -9098,6 +9098,8 @@ fn nodeMayNeedMemoryLocation(tree: *const Ast, start_node: Ast.Node.Index, have_
.always => return true,
.forward1 => node = node_datas[node].rhs,
}
+ // Missing builtin arg is not a parsing error, expect an error later.
+ if (node == 0) return false;
},
.builtin_call, .builtin_call_comma => {
@@ -9112,6 +9114,8 @@ fn nodeMayNeedMemoryLocation(tree: *const Ast, start_node: Ast.Node.Index, have_
.always => return true,
.forward1 => node = params[1],
}
+ // Missing builtin arg is not a parsing error, expect an error later.
+ if (node == 0) return false;
},
}
}