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 | 50e60c70262298c9da6e2b89a6c5ca447125c8db (patch) | |
tree | 87cdb0f887c2e24c71f746738d6b43904d192246 | |
parent | 7e529e4b3cbce226f26f840e434332cf0d4e2c32 (diff) |
Quiet warnings on the persephone tester
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17821 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 50a26c18c9..f336722dd7 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/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)); |