aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-06-19 18:00:44 +0000
committerBill Wendling <isanbard@gmail.com>2008-06-19 18:00:44 +0000
commiteccb84d5bade765a31ad95818bb5add37e1a23ce (patch)
tree5da5288866bfdf99ef72d0bb078ff275ad931bc6 /lib
parent20eea1bf14b533c0898df25a88315eb0216ecdb7 (diff)
downloadexternal_llvm-eccb84d5bade765a31ad95818bb5add37e1a23ce.zip
external_llvm-eccb84d5bade765a31ad95818bb5add37e1a23ce.tar.gz
external_llvm-eccb84d5bade765a31ad95818bb5add37e1a23ce.tar.bz2
Remove dead code causing a warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52502 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/Scalar/InstructionCombining.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp
index 481f397..72a27f5 100644
--- a/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -1655,8 +1655,6 @@ static Instruction *AssociativeOpt(BinaryOperator &Root, const Functor &F) {
// If the functor wants to apply the optimization to the RHS of LHSI,
// reassociate the expression from ((? op A) op B) to (? op (A op B))
if (ShouldApply) {
- BasicBlock *BB = Root.getParent();
-
// Now all of the instructions are in the current basic block, go ahead
// and perform the reassociation.
Instruction *TmpLHSI = cast<Instruction>(Root.getOperand(0));