[llvm] r292333 - [LoopDeletion] (cleanup, NFC) Fix one more local variable that didn't

Chandler Carruth via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 17 18:43:01 PST 2017


Author: chandlerc
Date: Tue Jan 17 20:43:01 2017
New Revision: 292333

URL: http://llvm.org/viewvc/llvm-project?rev=292333&view=rev
Log:
[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.

Modified:
    llvm/trunk/lib/Transforms/Scalar/LoopDeletion.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/LoopDeletion.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopDeletion.cpp?rev=292333&r1=292332&r2=292333&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopDeletion.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopDeletion.cpp Tue Jan 17 20:43:01 2017
@@ -165,10 +165,10 @@ static bool deleteLoopIfDead(Loop *L, Do
 
   // 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)




More information about the llvm-commits mailing list