aboutsummaryrefslogtreecommitdiff
path: root/src/AstGen.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-04-07 10:24:57 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-04-07 10:24:57 -0700
commitbcc371618fd71185e71a889c09eb68733ca66842 (patch)
tree9fa3bff07baa61f3edadff24a3c5898418267472 /src/AstGen.zig
parent2871d32be727fc729ba4be0c615cb5fe97591391 (diff)
downloadzig-bcc371618fd71185e71a889c09eb68733ca66842.tar.gz
zig-bcc371618fd71185e71a889c09eb68733ca66842.zip
AstGen: fix `@breakpoint` ZIR
Previously it relied on the breakpoint ZIR instruction being void, but that's no longer how things work.
Diffstat (limited to 'src/AstGen.zig')
-rw-r--r--src/AstGen.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/AstGen.zig b/src/AstGen.zig
index 6c3ce1251c..a059ab04cb 100644
--- a/src/AstGen.zig
+++ b/src/AstGen.zig
@@ -3894,11 +3894,11 @@ fn builtinCall(
return rvalue(gz, scope, rl, result, node);
},
.breakpoint => {
- const result = try gz.add(.{
+ _ = try gz.add(.{
.tag = .breakpoint,
.data = .{ .node = gz.astgen.decl.nodeIndexToRelative(node) },
});
- return rvalue(gz, scope, rl, result, node);
+ return rvalue(gz, scope, rl, .void_value, node);
},
.import => {
const target = try expr(gz, scope, .none, params[0]);