Remove unused local variable. NFC.
authorDiego Novillo <dnovillo@google.com>
Mon, 26 Oct 2015 20:50:26 +0000 (20:50 +0000)
committerDiego Novillo <dnovillo@google.com>
Mon, 26 Oct 2015 20:50:26 +0000 (20:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251344 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/SampleProfile.cpp

index 29fc9268f3b37f90337d8b431822a1da986b6f42..6ab73450d16ef242c9308d93d1cbdca26e3fff53 100644 (file)
@@ -748,7 +748,6 @@ void SampleProfileLoader::propagateWeights(Function &F) {
                  << TI->getDebugLoc().getLine() << ".\n");
     SmallVector<uint32_t, 4> Weights;
     uint32_t MaxWeight = 0;
-    BasicBlock *MaxDestBB = nullptr;
     DebugLoc MaxDestLoc;
     for (unsigned I = 0; I < TI->getNumSuccessors(); ++I) {
       BasicBlock *Succ = TI->getSuccessor(I);
@@ -766,7 +765,6 @@ void SampleProfileLoader::propagateWeights(Function &F) {
       if (Weight != 0) {
         if (Weight > MaxWeight) {
           MaxWeight = Weight;
-          MaxDestBB = Succ;
           MaxDestLoc = Succ->getFirstNonPHIOrDbgOrLifetime()->getDebugLoc();
         }
       }