]> granicus.if.org Git - llvm/commitdiff
[LoopDeletion] (cleanup, NFC) Fix one more local variable that didn't
authorChandler Carruth <chandlerc@gmail.com>
Wed, 18 Jan 2017 02:43:01 +0000 (02:43 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 18 Jan 2017 02:43:01 +0000 (02:43 +0000)
follow LLVM's naming conventions while I'm here.

Again, sorry I didn't spot this earlier to coalesce with other cleanup
changes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292333 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/LoopDeletion.cpp

index 3089f5cedc61d74a4c6f2bd312451d7e8f55ca33..54d48e841afa12c7174e183d3d9ef4fb1d8d40ca 100644 (file)
@@ -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)