| ... | @@ -2863,8 +2863,9 @@ fn astgenAndSemaFn( | ... | @@ -2863,8 +2863,9 @@ fn astgenAndSemaFn( |
| 2863 | | 2863 | |
| 2864 | _ = try AstGen.expr(&gen_scope, params_scope, .none, body_node); | 2864 | _ = try AstGen.expr(&gen_scope, params_scope, .none, body_node); |
| 2865 | | 2865 | |
| 2866 | if (gen_scope.instructions.items.len == 0 or | 2866 | const inst_tags = astgen.instructions.items(.tag); |
| 2867 | !astgen.instructions.items(.tag)[gen_scope.instructions.items.len - 1] | 2867 | if (inst_tags.len == 0 or |
| | 2868 | !inst_tags[inst_tags.len - 1] |
| 2868 | .isNoReturn()) | 2869 | .isNoReturn()) |
| 2869 | { | 2870 | { |
| 2870 | // astgen uses result location semantics to coerce return operands. | 2871 | // astgen uses result location semantics to coerce return operands. |