mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-03 00:33:09 +00:00
Fix the build for gcc-4.2.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48639 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
920c37afc5
commit
1d57a752a2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user