From 190c712f73bea6762425e48f9af797fed4f2387d Mon Sep 17 00:00:00 2001 From: Jakub Staszak Date: Wed, 7 Dec 2011 19:46:10 +0000 Subject: [PATCH] Remove unneeded semicolon. Skip two looking up at BlockChain. llvm-svn: 146053 --- llvm/lib/CodeGen/MachineBlockPlacement.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/lib/CodeGen/MachineBlockPlacement.cpp b/llvm/lib/CodeGen/MachineBlockPlacement.cpp index 2287cc853df5..638d89577022 100644 --- a/llvm/lib/CodeGen/MachineBlockPlacement.cpp +++ b/llvm/lib/CodeGen/MachineBlockPlacement.cpp @@ -530,7 +530,7 @@ void MachineBlockPlacement::buildChain( markChainSuccessors(SuccChain, LoopHeaderBB, BlockWorkList, BlockFilter); Chain.merge(BestSucc, &SuccChain); BB = *llvm::prior(Chain.end()); - }; + } DEBUG(dbgs() << "Finished forming chain for header block " << getBlockNum(*Chain.begin()) << "\n"); @@ -681,8 +681,8 @@ void MachineBlockPlacement::buildLoopChains(MachineFunction &F, // walk the blocks, and use a set to prevent visiting a particular chain // twice. SmallPtrSet UpdatedPreds; - assert(BlockToChain[LayoutTop]->LoopPredecessors == 0); - UpdatedPreds.insert(BlockToChain[LayoutTop]); + assert(LoopChain.LoopPredecessors == 0); + UpdatedPreds.insert(&LoopChain); for (MachineLoop::block_iterator BI = L.block_begin(), BE = L.block_end(); BI != BE; ++BI) { -- GitLab