From 490aea2bbff402eb6013a2d33dba3e5f0fa5f5e6 Mon Sep 17 00:00:00 2001 From: Diego Novillo Date: Mon, 26 Oct 2015 20:50:26 +0000 Subject: [PATCH] Remove unused local variable. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251344 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/IPO/SampleProfile.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/Transforms/IPO/SampleProfile.cpp b/lib/Transforms/IPO/SampleProfile.cpp index 29fc9268f3b..6ab73450d16 100644 --- a/lib/Transforms/IPO/SampleProfile.cpp +++ b/lib/Transforms/IPO/SampleProfile.cpp @@ -748,7 +748,6 @@ void SampleProfileLoader::propagateWeights(Function &F) { << TI->getDebugLoc().getLine() << ".\n"); SmallVector 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(); } } -- 2.50.1