| ... | @@ -4149,7 +4149,8 @@ static LLVMValueRef ir_render_frame_address(CodeGen *g, IrExecutable *executable | ... | @@ -4149,7 +4149,8 @@ static LLVMValueRef ir_render_frame_address(CodeGen *g, IrExecutable *executable |
| 4149 | static LLVMValueRef ir_render_handle(CodeGen *g, IrExecutable *executable, | 4149 | static LLVMValueRef ir_render_handle(CodeGen *g, IrExecutable *executable, |
| 4150 | IrInstructionHandle *instruction) | 4150 | IrInstructionHandle *instruction) |
| 4151 | { | 4151 | { |
| 4152 | return LLVMConstNull(g->builtin_types.entry_promise->type_ref); | 4152 | LLVMValueRef ptr = ir_llvm_value(g, executable->fn_entry->ir_executable.coro_handle->other); |
| | 4153 | return LLVMBuildBitCast(g->builder, ptr, g->builtin_types.entry_promise->type_ref, ""); |
| 4153 | } | 4154 | } |
| 4154 | | 4155 | |
| 4155 | static LLVMValueRef render_shl_with_overflow(CodeGen *g, IrInstructionOverflowOp *instruction) { | 4156 | static LLVMValueRef render_shl_with_overflow(CodeGen *g, IrInstructionOverflowOp *instruction) { |