mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-30 02:25:19 +00:00
use getNumArgOperands
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106709 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user