mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-05 03:36:43 +00:00
[LoopDeletion] (cleanup, NFC) Fix one more local variable that didn't
follow LLVM's naming conventions while I'm here. Again, sorry I didn't spot this earlier to coalesce with other cleanup changes. llvm-svn: 292333
This commit is contained in:
parent
08eb2f577c
commit
7bd554b82a
@ -165,10 +165,10 @@ static bool deleteLoopIfDead(Loop *L, DominatorTree &DT, ScalarEvolution &SE,
|
||||
|
||||
// Rewrite phis in the exit block to get their inputs from
|
||||
// the preheader instead of the exiting block.
|
||||
BasicBlock *exitingBlock = ExitingBlocks[0];
|
||||
BasicBlock *ExitingBlock = ExitingBlocks[0];
|
||||
BasicBlock::iterator BI = ExitBlock->begin();
|
||||
while (PHINode *P = dyn_cast<PHINode>(BI)) {
|
||||
int j = P->getBasicBlockIndex(exitingBlock);
|
||||
int j = P->getBasicBlockIndex(ExitingBlock);
|
||||
assert(j >= 0 && "Can't find exiting block in exit block's phi node!");
|
||||
P->setIncomingBlock(j, Preheader);
|
||||
for (unsigned i = 1; i < ExitingBlocks.size(); ++i)
|
||||
|
Loading…
x
Reference in New Issue
Block a user