From 5a2cbe239f4299b4412209148131a501ec023ceb Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 16 Aug 2019 13:00:48 -0400 Subject: fix and test case for returning from suspend block See #3063 --- src/ir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ir.cpp') diff --git a/src/ir.cpp b/src/ir.cpp index d6fba23856..3287a6bd37 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -7914,7 +7914,7 @@ static IrInstruction *ir_gen_suspend(IrBuilder *irb, Scope *parent_scope, AstNod ir_mark_gen(ir_build_check_statement_is_void(irb, child_scope, node->data.suspend.block, susp_res)); } - return ir_build_suspend_finish(irb, parent_scope, node, begin); + return ir_mark_gen(ir_build_suspend_finish(irb, parent_scope, node, begin)); } static IrInstruction *ir_gen_node_raw(IrBuilder *irb, AstNode *node, Scope *scope, -- cgit v1.2.3