zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit df1ba38a88a255286af4d939d427f8a4ee667485 (tree)
parent b6133931d04afc6980dfff2e87dadc85922d5335
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Thu, 31 Mar 2022 15:06:12 -0700

AstGen: fix treating noreturn instructions as void

Fixes regression introduced in cf4aad4858ac61b4814d8f021c8eae22ee7f63e6.

Diffstat:
Msrc/Zir.zig | 26+++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/src/Zir.zig b/src/Zir.zig @@ -1269,19 +1269,6 @@ pub const Inst = struct { return switch (tag) { .breakpoint, .fence, - .@"break", - .break_inline, - .condbr, - .condbr_inline, - .compile_error, - .ret_node, - .ret_load, - .ret_tok, - .ret_err_value, - .@"unreachable", - .repeat, - .repeat_inline, - .panic, .dbg_stmt, .dbg_var_ptr, .dbg_var_val, @@ -1525,6 +1512,19 @@ pub const Inst = struct { .extended, .closure_get, .closure_capture, + .@"break", + .break_inline, + .condbr, + .condbr_inline, + .compile_error, + .ret_node, + .ret_load, + .ret_tok, + .ret_err_value, + .@"unreachable", + .repeat, + .repeat_inline, + .panic, => false, }; }