aboutsummaryrefslogtreecommitdiff
path: root/src/Zir.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-05-05 21:31:16 -0700
committerGitHub <noreply@github.com>2023-05-05 21:31:16 -0700
commit1e9811070be35463e5cf4dfd284d9313e0621ded (patch)
treea8c7969270a16c1dfa945cc168cc4fc533e7fa56 /src/Zir.zig
parent4bfd37ddb48af4dbfd2e892aec7a90a822c8cbe7 (diff)
parentdf4849c4f5aafc7eb80fd7b2299b49162fa2aa79 (diff)
downloadzig-1e9811070be35463e5cf4dfd284d9313e0621ded.tar.gz
zig-1e9811070be35463e5cf4dfd284d9313e0621ded.zip
Merge pull request #15591 from jacobly0/undef-errdefer-capture
AstGen: fix branch on undefined
Diffstat (limited to 'src/Zir.zig')
-rw-r--r--src/Zir.zig7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Zir.zig b/src/Zir.zig
index 51c90c61cb..7f9681e533 100644
--- a/src/Zir.zig
+++ b/src/Zir.zig
@@ -1979,7 +1979,7 @@ pub const Inst = struct {
/// `operand` is `src_node: i32`.
breakpoint,
/// Implements the `@select` builtin.
- /// operand` is payload index to `Select`.
+ /// `operand` is payload index to `Select`.
select,
/// Implement builtin `@errToInt`.
/// `operand` is payload index to `UnNode`.
@@ -1999,7 +1999,7 @@ pub const Inst = struct {
/// `operand` is payload index to `Cmpxchg`.
cmpxchg,
/// Implement the builtin `@addrSpaceCast`
- /// `Operand` is payload index to `BinNode`. `lhs` is dest type, `rhs` is operand.
+ /// `operand` is payload index to `BinNode`. `lhs` is dest type, `rhs` is operand.
addrspace_cast,
/// Implement builtin `@cVaArg`.
/// `operand` is payload index to `BinNode`.
@@ -2031,6 +2031,9 @@ pub const Inst = struct {
/// Implements the `@inComptime` builtin.
/// `operand` is `src_node: i32`.
in_comptime,
+ /// Used as a placeholder for the capture of an `errdefer`.
+ /// This is replaced by Sema with the captured value.
+ errdefer_err_code,
pub const InstData = struct {
opcode: Extended,