summaryrefslogtreecommitdiff
path: root/examples/HowToUseJIT
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-05-06 05:59:50 +0000
committerChris Lattner <sabre@nondot.org>2005-05-06 05:59:50 +0000
commit47968e4dfd849b83a7eb958611c994e6b500998c (patch)
tree085b3cc7e97cbb48d5060e53afc3d613388701e7 /examples/HowToUseJIT
parentddb6db4fa11d06217d01d8431596131abdfb7ef0 (diff)
downloadllvm-47968e4dfd849b83a7eb958611c994e6b500998c.tar.gz
llvm-47968e4dfd849b83a7eb958611c994e6b500998c.tar.bz2
llvm-47968e4dfd849b83a7eb958611c994e6b500998c.tar.xz
These are legal for tail calls
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21723 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples/HowToUseJIT')
-rw-r--r--examples/HowToUseJIT/HowToUseJIT.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/HowToUseJIT/HowToUseJIT.cpp b/examples/HowToUseJIT/HowToUseJIT.cpp
index 31ea4f4540..192c76dcce 100644
--- a/examples/HowToUseJIT/HowToUseJIT.cpp
+++ b/examples/HowToUseJIT/HowToUseJIT.cpp
@@ -87,7 +87,8 @@ int main() {
// Pass Ten to the call call:
std::vector<Value*> Params;
Params.push_back(Ten);
- CallInst * Add1CallRes = new CallInst(Add1F, Params, "add1", BB);
+ CallInst *Add1CallRes = new CallInst(Add1F, Params, "add1", BB);
+ Add1CallRes->setTailCall(true);
// Create the return instruction and add it to the basic block.
new ReturnInst(Add1CallRes, BB);