mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-29 14:40:25 +00:00
Fix a warning about comparison between signed and unsigned,
being consistent with the rest of the APInt implementation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47138 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8c5c22f610
commit
5a0e7b41c1
@ -818,7 +818,7 @@ uint32_t APInt::countTrailingOnes() const {
|
||||
return std::min(uint32_t(CountTrailingOnes_64(VAL)), BitWidth);
|
||||
uint32_t Count = 0;
|
||||
uint32_t i = 0;
|
||||
for (; i < getNumWords() && pVal[i] == -1; ++i)
|
||||
for (; i < getNumWords() && pVal[i] == -1ULL; ++i)
|
||||
Count += APINT_BITS_PER_WORD;
|
||||
if (i < getNumWords())
|
||||
Count += CountTrailingOnes_64(pVal[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user