mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
use getNumArgOperands
llvm-svn: 106709
This commit is contained in:
parent
1d1526999b
commit
39ff38468c
@ -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
|
// 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
|
// required PHI nodes, add entries into the PHI node for the actual
|
||||||
// parameters passed into the tail-recursive call.
|
// 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);
|
ArgumentPHIs[i]->addIncoming(CI->getArgOperand(i), BB);
|
||||||
|
|
||||||
// If we are introducing an accumulator variable to eliminate the recursion,
|
// If we are introducing an accumulator variable to eliminate the recursion,
|
||||||
|
Loading…
Reference in New Issue
Block a user