diff options
| author | Meghan Denny <hello@nektro.net> | 2022-03-30 20:47:45 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-03-31 02:12:44 -0400 |
| commit | 08565b23f94655e3b2610187f71ba774ce89eeb8 (patch) | |
| tree | d313dff0b3121b3f840e2de45d17b3d7f457fcde /src/AstGen.zig | |
| parent | 75c2cff40ef5c758ec18455324a50378684aff85 (diff) | |
| download | zig-08565b23f94655e3b2610187f71ba774ce89eeb8.tar.gz zig-08565b23f94655e3b2610187f71ba774ce89eeb8.zip | |
stage2: fix print_zir for .builtin_src
Diffstat (limited to 'src/AstGen.zig')
| -rw-r--r-- | src/AstGen.zig | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/AstGen.zig b/src/AstGen.zig index b6ca1fe848..0fe64ec36b 100644 --- a/src/AstGen.zig +++ b/src/AstGen.zig @@ -7205,14 +7205,11 @@ fn builtinCall( .src => { const token_starts = tree.tokens.items(.start); const node_start = token_starts[tree.firstToken(node)]; - astgen.advanceSourceCursor(node_start); - const result = try gz.addExtendedPayload(.builtin_src, Zir.Inst.LineColumn{ - .line = @intCast(u32, astgen.source_line), - .column = @intCast(u32, astgen.source_column), + .line = astgen.source_line, + .column = astgen.source_column, }); - return rvalue(gz, rl, result, node); }, |
