diff options
author | Duncan Sands <baldrick@free.fr> | 2008-03-21 08:32:17 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-03-21 08:32:17 +0000 |
commit | c9e09a0588d3c872082151542a299003630e2e5b (patch) | |
tree | 583b0cf3d2a947d6ee57a5c04134f6292a1a080f /llvm/lib | |
parent | f4303edfa34546c71765997d720824854033605e (diff) | |
download | bcm5719-llvm-c9e09a0588d3c872082151542a299003630e2e5b.tar.gz bcm5719-llvm-c9e09a0588d3c872082151542a299003630e2e5b.zip |
Fix the build for gcc-4.2.
llvm-svn: 48639
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 1b7578904d5..083dd520b4a 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -833,7 +833,7 @@ static void ComputeMaskedBits(Value *V, const APInt &Mask, APInt& KnownZero, 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 @@ static void ComputeMaskedBits(Value *V, const APInt &Mask, APInt& KnownZero, KnownZero = APInt::getLowBitsSet(BitWidth, KnownZeroOut); KnownOne = APInt(BitWidth, 0); return; + } case Instruction::Sub: { ConstantInt *CLHS = dyn_cast<ConstantInt>(I->getOperand(0)); if (!CLHS) break; |