mirror of
https://github.com/ziglang/zig.git
synced 2026-01-03 03:53:20 +00:00
AstGen: fix treating noreturn instructions as void
Fixes regression introduced in cf4aad4858ac61b4814d8f021c8eae22ee7f63e6.
This commit is contained in:
parent
b6133931d0
commit
df1ba38a88
26
src/Zir.zig
26
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,
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user