| ... | @@ -4026,7 +4026,8 @@ static LLVMValueRef ir_render_coro_promise(CodeGen *g, IrExecutable *executable, | ... | @@ -4026,7 +4026,8 @@ static LLVMValueRef ir_render_coro_promise(CodeGen *g, IrExecutable *executable, |
| 4026 | LLVMConstInt(LLVMInt32Type(), get_coro_frame_align_bytes(g), false), | 4026 | LLVMConstInt(LLVMInt32Type(), get_coro_frame_align_bytes(g), false), |
| 4027 | LLVMConstNull(LLVMInt1Type()), | 4027 | LLVMConstNull(LLVMInt1Type()), |
| 4028 | }; | 4028 | }; |
| 4029 | return LLVMBuildCall(g->builder, get_coro_promise_fn_val(g), params, 3, ""); | 4029 | LLVMValueRef uncasted_result = LLVMBuildCall(g->builder, get_coro_promise_fn_val(g), params, 3, ""); |
| | 4030 | return LLVMBuildBitCast(g->builder, uncasted_result, instruction->base.value.type->type_ref, ""); |
| 4030 | } | 4031 | } |
| 4031 | | 4032 | |
| 4032 | static LLVMValueRef get_coro_alloc_helper_fn_val(CodeGen *g, LLVMTypeRef alloc_fn_type_ref, TypeTableEntry *fn_type) { | 4033 | static LLVMValueRef get_coro_alloc_helper_fn_val(CodeGen *g, LLVMTypeRef alloc_fn_type_ref, TypeTableEntry *fn_type) { |