AstGen: fix treating noreturn instructions as void

Fixes regression introduced in cf4aad4858ac61b4814d8f021c8eae22ee7f63e6.
This commit is contained in:
Andrew Kelley 2022-03-31 15:06:12 -07:00
parent b6133931d0
commit df1ba38a88

View File

@ -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,
};
}