[llvm-commits] [llvm] r48639 - /llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp

Duncan Sands baldrick at free.fr
Fri Mar 21 01:32:18 PDT 2008


Author: baldrick
Date: Fri Mar 21 03:32:17 2008
New Revision: 48639

URL: http://llvm.org/viewvc/llvm-project?rev=48639&view=rev
Log:
Fix the build for gcc-4.2.

Modified:
    llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp?rev=48639&r1=48638&r2=48639&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp Fri Mar 21 03:32:17 2008
@@ -833,7 +833,7 @@
       return;
     }
     break;
-  case Instruction::Add:
+  case Instruction::Add: {
     // If either the LHS or the RHS are Zero, the result is zero.
     ComputeMaskedBits(I->getOperand(1), Mask, KnownZero, KnownOne, Depth+1);
     ComputeMaskedBits(I->getOperand(0), Mask, KnownZero2, KnownOne2, Depth+1);
@@ -849,6 +849,7 @@
     KnownZero = APInt::getLowBitsSet(BitWidth, KnownZeroOut);
     KnownOne = APInt(BitWidth, 0);
     return;
+  }
   case Instruction::Sub: {
     ConstantInt *CLHS = dyn_cast<ConstantInt>(I->getOperand(0));
     if (!CLHS) break;





More information about the llvm-commits mailing list