diff options
| author | Gabor Greif <ggreif@gmail.com> | 2010-06-24 00:48:48 +0000 |
|---|---|---|
| committer | Gabor Greif <ggreif@gmail.com> | 2010-06-24 00:48:48 +0000 |
| commit | 0f60709f0e860d84522ab77dc07c57b179ee2692 (patch) | |
| tree | 5144d18b0d07817658a674853c9ed4621c285c0e /llvm/lib | |
| parent | 562a5a3904261382532375726037dbc9022ee46c (diff) | |
| download | bcm5719-llvm-0f60709f0e860d84522ab77dc07c57b179ee2692.tar.gz bcm5719-llvm-0f60709f0e860d84522ab77dc07c57b179ee2692.zip | |
use getNumArgOperands
llvm-svn: 106709
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp b/llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp index 3b019bcf277..42f4a5f71d0 100644 --- a/llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp +++ b/llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp @@ -454,7 +454,7 @@ bool TailCallElim::ProcessReturningBlock(ReturnInst *Ret, BasicBlock *&OldEntry, // Ok, now that we know we have a pseudo-entry block WITH all of the // required PHI nodes, add entries into the PHI node for the actual // parameters passed into the tail-recursive call. - for (unsigned i = 0, e = CI->getNumOperands()-1; i != e; ++i) + for (unsigned i = 0, e = CI->getNumArgOperands(); i != e; ++i) ArgumentPHIs[i]->addIncoming(CI->getArgOperand(i), BB); // If we are introducing an accumulator variable to eliminate the recursion, |

