Quiet warnings on the persephone tester
authorChris Lattner <sabre@nondot.org>
Mon, 15 Nov 2004 05:54:07 +0000 (05:54 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 15 Nov 2004 05:54:07 +0000 (05:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17821 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/InstructionCombining.cpp

index 50a26c18c95ac2b38c6960c6da40c52e6e0c14de..f336722dd739ba89035920a4aa79958dc505b780 100644 (file)
@@ -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));