aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms
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
commit6e7dd9db6bf677c9161a6ecc12f90651cf1231e0 (patch)
treeb39e994f8f4015b8056c23e94c16ceee54ef9fad /lib/Transforms
parentb74b1816305affe25da32c2f29532df41a23cd55 (diff)
downloadexternal_llvm-6e7dd9db6bf677c9161a6ecc12f90651cf1231e0.zip
external_llvm-6e7dd9db6bf677c9161a6ecc12f90651cf1231e0.tar.gz
external_llvm-6e7dd9db6bf677c9161a6ecc12f90651cf1231e0.tar.bz2
While creating mask, use 1ULL instead of 1.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31062 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Scalar/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp
index 97b7ceb..4a7edba 100644
--- a/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/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);
}