diff options
Diffstat (limited to 'src/AstGen.zig')
| -rw-r--r-- | src/AstGen.zig | 4 |
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; }, } } |
