aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2013-05-16 16:03:36 +0000
committerAaron Ballman <aaron@aaronballman.com>2013-05-16 16:03:36 +0000
commit12cba852f550ae2d2fdb6b6be28d087aae585a76 (patch)
tree06f000819a81c3fe08ee9e19bcd4844078c91969
parent3808c4d20635add28e74dcef0601fdf030d20353 (diff)
downloadexternal_llvm-12cba852f550ae2d2fdb6b6be28d087aae585a76.tar.gz
external_llvm-12cba852f550ae2d2fdb6b6be28d087aae585a76.tar.bz2
external_llvm-12cba852f550ae2d2fdb6b6be28d087aae585a76.zip
Fixing a 64-bit conversion warning in MSVC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182018 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/SystemZ/SystemZISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/SystemZ/SystemZISelLowering.cpp b/lib/Target/SystemZ/SystemZISelLowering.cpp
index eb21b31da8..ea094b39f3 100644
--- a/lib/Target/SystemZ/SystemZISelLowering.cpp
+++ b/lib/Target/SystemZ/SystemZISelLowering.cpp
@@ -840,7 +840,7 @@ static void adjustSubwordCmp(SelectionDAG &DAG, bool &IsUnsigned,
uint64_t Mask = (1 << NumBits) - 1;
if (Load->getExtensionType() == ISD::SEXTLOAD) {
int64_t SignedValue = Constant->getSExtValue();
- if (uint64_t(SignedValue) + (1 << (NumBits - 1)) > Mask)
+ if (uint64_t(SignedValue) + (1ULL << (NumBits - 1)) > Mask)
return;
// Unsigned comparison between two sign-extended values is equivalent
// to unsigned comparison between two zero-extended values.