From e822b63681cc525f957a9ebade0f70a2dd19cdeb Mon Sep 17 00:00:00 2001 From: Diego Novillo Date: Mon, 26 Oct 2015 20:50:26 +0000 Subject: Remove unused local variable. NFC. llvm-svn: 251344 --- llvm/lib/Transforms/IPO/SampleProfile.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'llvm/lib/Transforms') diff --git a/llvm/lib/Transforms/IPO/SampleProfile.cpp b/llvm/lib/Transforms/IPO/SampleProfile.cpp index 29fc926..6ab73450 100644 --- a/llvm/lib/Transforms/IPO/SampleProfile.cpp +++ b/llvm/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(); } } -- cgit v1.1