diff options
author | Dale Johannesen <dalej@apple.com> | 2009-10-12 18:45:32 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2009-10-12 18:45:32 +0000 |
commit | c1deda50ca04d25e21a9b0bbd0ccccc882993e74 (patch) | |
tree | 350fb1fb7b8a57237faaee0a939fbdb24c35d886 | |
parent | a83a10835f464eec8cbce406551f73974f29db8d (diff) |
Fix warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83870 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 3b6f5d4e75..b67bc050bd 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -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)) |