Commit 32d0ac1355

Andrew Kelley <andrew@ziglang.org>
2019-07-22 06:07:48
fix wrong calling convention on async resume
1 parent 59bf9ca
Changed files (1)
src/codegen.cpp
@@ -4981,7 +4981,7 @@ static LLVMValueRef ir_render_coro_resume(CodeGen *g, IrExecutable *executable,
     assert(frame_type->id == ZigTypeIdCoroFrame);
     ZigFn *fn = frame_type->data.frame.fn;
     LLVMValueRef fn_val = fn_llvm_value(g, fn);
-    LLVMBuildCall(g->builder, fn_val, &frame, 1, "");
+    ZigLLVMBuildCall(g->builder, fn_val, &frame, 1, LLVMFastCallConv, ZigLLVM_FnInlineAuto, "");
     return nullptr;
 }