diff options
| author | Veikka Tuominen <git@vexu.eu> | 2022-07-06 11:36:39 +0300 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2022-07-07 10:50:06 +0300 |
| commit | 2ca752ea1ad4afb9d510687ae097c709668316b9 (patch) | |
| tree | eaff16d368cff38f09a05d8dec03ec3dea040435 /src/AstGen.zig | |
| parent | 89cef9f5f731f8f33dc935aac3c21bd57c92900d (diff) | |
| download | zig-2ca752ea1ad4afb9d510687ae097c709668316b9.tar.gz zig-2ca752ea1ad4afb9d510687ae097c709668316b9.zip | |
Module: add `.node_offset_un_op`
Diffstat (limited to 'src/AstGen.zig')
| -rw-r--r-- | src/AstGen.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AstGen.zig b/src/AstGen.zig index a44ac04557..33526524d8 100644 --- a/src/AstGen.zig +++ b/src/AstGen.zig @@ -812,7 +812,7 @@ fn expr(gz: *GenZir, scope: *Scope, rl: ResultLoc, node: Ast.Node.Index) InnerEr .deref => { const lhs = try expr(gz, scope, .none, node_datas[node].lhs); - _ = try gz.addUnTok(.validate_deref, lhs, main_tokens[node]); + _ = try gz.addUnNode(.validate_deref, lhs, node); switch (rl) { .ref => return lhs, else => { |
