commit 32d0ac135556903dc016a64ff4d6b5cb9e35c84a (tree)
parent 59bf9ca58c992e02423fae2ba8773eac098189b9
Author: Andrew Kelley <andrew@ziglang.org>
Date: Mon, 22 Jul 2019 00:07:48 -0400
fix wrong calling convention on async resume
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/codegen.cpp b/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;
}