mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
singed int causes signed extension, which contradicts the intention to pick up
integers with high 32 bits being zero. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132538 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b2afe8759d
commit
422b62b407
@ -92,7 +92,7 @@ void FoldingSetNodeID::AddInteger(long long I) {
|
||||
}
|
||||
void FoldingSetNodeID::AddInteger(unsigned long long I) {
|
||||
AddInteger(unsigned(I));
|
||||
if ((uint64_t)(int)I != I)
|
||||
if ((uint64_t)(unsigned)I != I)
|
||||
Bits.push_back(unsigned(I >> 32));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user