aboutsummaryrefslogtreecommitdiff
path: root/src/zig_llvm.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-07-25 00:03:06 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-07-25 00:03:06 -0400
commitead2d32be871411685f846e604ec7e4253b9f25a (patch)
treef9e3f930aef5ed60d452c4cf20776879b086acf1 /src/zig_llvm.cpp
parente220812f2f0fe2becd570308971f98e0290835db (diff)
downloadzig-ead2d32be871411685f846e604ec7e4253b9f25a.tar.gz
zig-ead2d32be871411685f846e604ec7e4253b9f25a.zip
calling an inferred async function
Diffstat (limited to 'src/zig_llvm.cpp')
-rw-r--r--src/zig_llvm.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/zig_llvm.cpp b/src/zig_llvm.cpp
index c51c9e1a50..b52edabe65 100644
--- a/src/zig_llvm.cpp
+++ b/src/zig_llvm.cpp
@@ -898,6 +898,10 @@ LLVMValueRef ZigLLVMBuildAShrExact(LLVMBuilderRef builder, LLVMValueRef LHS, LLV
return wrap(unwrap(builder)->CreateAShr(unwrap(LHS), unwrap(RHS), name, true));
}
+void ZigLLVMSetTailCall(LLVMValueRef Call) {
+ unwrap<CallInst>(Call)->setTailCallKind(CallInst::TCK_MustTail);
+}
+
class MyOStream: public raw_ostream {
public: