summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2009-10-12 18:45:32 +0000
committerDale Johannesen <dalej@apple.com>2009-10-12 18:45:32 +0000
commit4c9f0e8f53c85a5b1b062c2ca534cbb77ffb4cbb (patch)
tree4a668ebbe39877bd588e1ec3275b4213f956132c /llvm/lib/Transforms/Scalar
parent65694b413d044004169b9e9d8bc04e87624d4c52 (diff)
downloadbcm5719-llvm-4c9f0e8f53c85a5b1b062c2ca534cbb77ffb4cbb.tar.gz
bcm5719-llvm-4c9f0e8f53c85a5b1b062c2ca534cbb77ffb4cbb.zip
Fix warning.
llvm-svn: 83870
Diffstat (limited to 'llvm/lib/Transforms/Scalar')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index 3b6f5d4e75c..b67bc050bd7 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/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))
OpenPOWER on IntegriCloud