summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2006-10-20 01:16:56 +0000
committerDevang Patel <dpatel@apple.com>2006-10-20 01:16:56 +0000
commit5d417e35bc36094f2e6519866fd25f4d0db6c551 (patch)
tree2329d1203b2f04003269bcce90da51e378a50834 /llvm/lib
parentb8b11599dd61f1c95fdb4f33f1c2f47bcde87f25 (diff)
downloadbcm5719-llvm-5d417e35bc36094f2e6519866fd25f4d0db6c551.tar.gz
bcm5719-llvm-5d417e35bc36094f2e6519866fd25f4d0db6c551.zip
While creating mask, use 1ULL instead of 1.
llvm-svn: 31062
Diffstat (limited to 'llvm/lib')
-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 97b7cebbb68..4a7edbafede 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -5595,7 +5595,7 @@ Instruction *InstCombiner::visitCastInst(CastInst &CI) {
unsigned SrcBitSize = Src->getType()->getPrimitiveSizeInBits();
unsigned DestBitSize = CI.getType()->getPrimitiveSizeInBits();
assert(SrcBitSize < DestBitSize && "Not a zext?");
- Constant *C = ConstantUInt::get(Type::ULongTy, (1 << SrcBitSize)-1);
+ Constant *C = ConstantUInt::get(Type::ULongTy, (1ULL << SrcBitSize)-1);
C = ConstantExpr::getCast(C, CI.getType());
return BinaryOperator::createAnd(Res, C);
}
OpenPOWER on IntegriCloud