[llvm-commits] CVS: llvm/examples/HowToUseJIT/HowToUseJIT.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu May 5 23:00:05 PDT 2005
Changes in directory llvm/examples/HowToUseJIT:
HowToUseJIT.cpp updated: 1.8 -> 1.9
---
Log message:
These are legal for tail calls
---
Diffs of the changes: (+2 -1)
HowToUseJIT.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/examples/HowToUseJIT/HowToUseJIT.cpp
diff -u llvm/examples/HowToUseJIT/HowToUseJIT.cpp:1.8 llvm/examples/HowToUseJIT/HowToUseJIT.cpp:1.9
--- llvm/examples/HowToUseJIT/HowToUseJIT.cpp:1.8 Wed Apr 20 11:42:34 2005
+++ llvm/examples/HowToUseJIT/HowToUseJIT.cpp Fri May 6 00:59:51 2005
@@ -87,7 +87,8 @@
// 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);
More information about the llvm-commits
mailing list