Remove silly dead store. Patch by Ettl Martin.
authorDuncan Sands <baldrick@free.fr>
Fri, 14 Sep 2012 09:00:11 +0000 (09:00 +0000)
committerDuncan Sands <baldrick@free.fr>
Fri, 14 Sep 2012 09:00:11 +0000 (09:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163882 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineBlockPlacement.cpp

index c4dca2cd151d048710e8f6f240da2c4e18a6f073..9a8cc48172a89bd4b2d0d5c948dacb933a5f1e85 100644 (file)
@@ -500,11 +500,10 @@ void MachineBlockPlacement::buildChain(
     assert(BB);
     assert(BlockToChain[BB] == &Chain);
     assert(*llvm::prior(Chain.end()) == BB);
-    MachineBasicBlock *BestSucc = 0;
 
     // Look for the best viable successor if there is one to place immediately
     // after this block.
-    BestSucc = selectBestSuccessor(BB, Chain, BlockFilter);
+    MachineBasicBlock *BestSucc = selectBestSuccessor(BB, Chain, BlockFilter);
 
     // If an immediate successor isn't available, look for the best viable
     // block among those we've identified as not violating the loop's CFG at