Fix warning.

llvm-svn: 83870
This commit is contained in:
Dale Johannesen 2009-10-12 18:45:32 +00:00
parent 65694b413d
commit 4c9f0e8f53
1 changed files with 1 additions and 1 deletions

View File

@ -2824,7 +2824,7 @@ Instruction *InstCombiner::visitMul(BinaryOperator &I) {
// X * Y (where Y is 0 or 1) -> X & (0-Y)
if (!isa<VectorType>(I.getType())) {
// -2 is "-1 << 1" so it is all bits set except the low one.
APInt Negative2(I.getType()->getPrimitiveSizeInBits(), -2, true);
APInt Negative2(I.getType()->getPrimitiveSizeInBits(), (uint64_t)-2, true);
Value *BoolCast = 0, *OtherOp = 0;
if (MaskedValueIsZero(Op0, Negative2))