summaryrefslogtreecommitdiff
path: root/examples/HowToUseJIT/HowToUseJIT.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/HowToUseJIT/HowToUseJIT.cpp')
-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);