From cd6fb1d0a878ae95d9924ab831092a591afbb35d Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 19 Jun 2008 18:00:44 +0000 Subject: [PATCH] Remove dead code causing a warning. llvm-svn: 52502 --- llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 481f397a3f9c..72a27f500c94 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/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(Root.getOperand(0));