diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2017-01-18 02:43:01 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2017-01-18 02:43:01 +0000 |
commit | 8aaad7c4d9ac7af2ec0496c2bb73418e32993ae0 (patch) | |
tree | dc59d23f066b8767c929bc725cd54c18623245e1 | |
parent | d50c5fb13f00ceac3353ce1a17fb5c53c5d65c03 (diff) | |
download | bcm5719-llvm-8aaad7c4d9ac7af2ec0496c2bb73418e32993ae0.tar.gz bcm5719-llvm-8aaad7c4d9ac7af2ec0496c2bb73418e32993ae0.zip |
[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
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopDeletion.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopDeletion.cpp b/llvm/lib/Transforms/Scalar/LoopDeletion.cpp index 3089f5cedc6..54d48e841af 100644 --- a/llvm/lib/Transforms/Scalar/LoopDeletion.cpp +++ b/llvm/lib/Transforms/Scalar/LoopDeletion.cpp @@ -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) |