aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2012-09-14 09:00:11 +0000
committerDuncan Sands <baldrick@free.fr>2012-09-14 09:00:11 +0000
commit74b4762234eaeff94058999758a83acc0b54cba6 (patch)
tree46014f0b45b7673585257e4aa15f74fbb63f34a9 /lib/CodeGen
parentf4d78241ea180b039596ce3d453ab2cc5ed35fc6 (diff)
downloadexternal_llvm-74b4762234eaeff94058999758a83acc0b54cba6.zip
external_llvm-74b4762234eaeff94058999758a83acc0b54cba6.tar.gz
external_llvm-74b4762234eaeff94058999758a83acc0b54cba6.tar.bz2
Remove silly dead store. Patch by Ettl Martin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163882 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/MachineBlockPlacement.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/MachineBlockPlacement.cpp b/lib/CodeGen/MachineBlockPlacement.cpp
index c4dca2c..9a8cc48 100644
--- a/lib/CodeGen/MachineBlockPlacement.cpp
+++ b/lib/CodeGen/MachineBlockPlacement.cpp
@@ -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