mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-17 18:24: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:
@@ -840,7 +840,7 @@ static void adjustSubwordCmp(SelectionDAG &DAG, bool &IsUnsigned,
|
|||||||
uint64_t Mask = (1 << NumBits) - 1;
|
uint64_t Mask = (1 << NumBits) - 1;
|
||||||
if (Load->getExtensionType() == ISD::SEXTLOAD) {
|
if (Load->getExtensionType() == ISD::SEXTLOAD) {
|
||||||
int64_t SignedValue = Constant->getSExtValue();
|
int64_t SignedValue = Constant->getSExtValue();
|
||||||
if (uint64_t(SignedValue) + (1 << (NumBits - 1)) > Mask)
|
if (uint64_t(SignedValue) + (1ULL << (NumBits - 1)) > Mask)
|
||||||
return;
|
return;
|
||||||
// Unsigned comparison between two sign-extended values is equivalent
|
// Unsigned comparison between two sign-extended values is equivalent
|
||||||
// to unsigned comparison between two zero-extended values.
|
// to unsigned comparison between two zero-extended values.
|
||||||
|
Reference in New Issue
Block a user