diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-11-15 05:54:07 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-11-15 05:54:07 +0000 |
| commit | 97013636cde95b407ac9a5f7fcddb9f9533bb970 (patch) | |
| tree | 1bed74d58c74eda46803c566917ea11fa208f70d /llvm/lib/Transforms | |
| parent | d18c16b84263a32353e432a7f92aa2968eb3851d (diff) | |
| download | bcm5719-llvm-97013636cde95b407ac9a5f7fcddb9f9533bb970.tar.gz bcm5719-llvm-97013636cde95b407ac9a5f7fcddb9f9533bb970.zip | |
Quiet warnings on the persephone tester
llvm-svn: 17821
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 50a26c18c95..f336722dd73 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -329,10 +329,10 @@ static inline Value *dyn_castFoldableMul(Value *V, ConstantInt *&CST) { if (V->hasOneUse() && V->getType()->isInteger()) if (Instruction *I = dyn_cast<Instruction>(V)) { if (I->getOpcode() == Instruction::Mul) - if (CST = dyn_cast<ConstantInt>(I->getOperand(1))) + if ((CST = dyn_cast<ConstantInt>(I->getOperand(1)))) return I->getOperand(0); if (I->getOpcode() == Instruction::Shl) - if (CST = dyn_cast<ConstantInt>(I->getOperand(1))) { + if ((CST = dyn_cast<ConstantInt>(I->getOperand(1)))) { // The multiplier is really 1 << CST. Constant *One = ConstantInt::get(V->getType(), 1); CST = cast<ConstantInt>(ConstantExpr::getShl(One, CST)); |

