Commit 723d13f 1 parent 9dda2eb commit 723d13f Copy full SHA for 723d13f
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4298,7 +4298,7 @@ fn fnDecl(
4298
4298
4299
4299
if (!fn_gz.endsWithNoReturn()) {
4300
4300
// As our last action before the return, "pop" the error trace if needed
4301
- _ = try gz .addRestoreErrRetIndex(.ret, .always, decl_node);
4301
+ _ = try fn_gz .addRestoreErrRetIndex(.ret, .always, decl_node);
4302
4302
4303
4303
// Add implicit return at end of function.
4304
4304
_ = try fn_gz.addUnTok(.ret_implicit, .void_value, tree.lastToken(body_node));
@@ -4746,7 +4746,7 @@ fn testDecl(
4746
4746
if (fn_block.isEmpty() or !fn_block.refIsNoReturn(block_result)) {
4747
4747
4748
4748
// As our last action before the return, "pop" the error trace if needed
4749
- _ = try gz .addRestoreErrRetIndex(.ret, .always, node);
4749
+ _ = try fn_block .addRestoreErrRetIndex(.ret, .always, node);
4750
4750
4751
4751
// Add implicit return at end of function.
4752
4752
_ = try fn_block.addUnTok(.ret_implicit, .void_value, tree.lastToken(body_node));
You can’t perform that action at this time.
0 commit comments