mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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
This commit is contained in:
parent
3808c4d206
commit
12cba852f5
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user