aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-03-21 08:32:17 +0000
committerDuncan Sands <baldrick@free.fr>2008-03-21 08:32:17 +0000
commit1d57a752a23c28ddbdde623c3a4676d0a2b62a08 (patch)
tree0045d14ea201018ea3e1b4505dd960ba35ee8ac3
parent920c37afc5896201ec014041cbd270289baa25c0 (diff)
downloadexternal_llvm-1d57a752a23c28ddbdde623c3a4676d0a2b62a08.zip
external_llvm-1d57a752a23c28ddbdde623c3a4676d0a2b62a08.tar.gz
external_llvm-1d57a752a23c28ddbdde623c3a4676d0a2b62a08.tar.bz2
Fix the build for gcc-4.2.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48639 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/InstructionCombining.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp
index 1b75789..083dd52 100644
--- a/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/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;