Remove unused local variable. NFC.
[oota-llvm.git] / 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();
         }
       }