diff options
author | Chris Lattner <sabre@nondot.org> | 2005-05-06 06:21:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-05-06 06:21:59 +0000 |
commit | f6b5c1abce89dbd7e8e12407aa8e4a04f805fdf2 (patch) | |
tree | 255ae7284684bca3df60504476e64bc65a2a63ac /examples/Fibonacci/fibonacci.cpp | |
parent | c28ade42665fd2bedddf402c9e30c9dfcfff9ec7 (diff) |
Don't forget these are calls
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21730 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples/Fibonacci/fibonacci.cpp')
-rw-r--r-- | examples/Fibonacci/fibonacci.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/Fibonacci/fibonacci.cpp b/examples/Fibonacci/fibonacci.cpp index 7c24e9e2fc8..af17d094c30 100644 --- a/examples/Fibonacci/fibonacci.cpp +++ b/examples/Fibonacci/fibonacci.cpp @@ -64,13 +64,13 @@ static Function *CreateFibFunction(Module *M) { // create fib(x-1) Value *Sub = BinaryOperator::createSub(ArgX, One, "arg", RecurseBB); - Value *CallFibX1 = new CallInst(FibF, Sub, "fibx1", RecurseBB); - CallFibX1->setTailCall(true); + CallInst *CallFibX1 = new CallInst(FibF, Sub, "fibx1", RecurseBB); + CallFibX1->setTailCall(); // create fib(x-2) Sub = BinaryOperator::createSub(ArgX, Two, "arg", RecurseBB); - Value *CallFibX2 = new CallInst(FibF, Sub, "fibx2", RecurseBB); - CallFibX2->setTailCall(true); + CallInst *CallFibX2 = new CallInst(FibF, Sub, "fibx2", RecurseBB); + CallFibX2->setTailCall(); // fib(x-1)+fib(x-2) |