Commit df1ba38a88

Andrew Kelley <andrew@ziglang.org>
2022-04-01 00:06:12
AstGen: fix treating noreturn instructions as void
Fixes regression introduced in cf4aad4858ac61b4814d8f021c8eae22ee7f63e6.
1 parent b613393
Changed files (1)
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,
             };
         }