mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-29 06:53:53 +00:00
Cygwin defines uint32_t as unsigned long. Unbreak call to std::min in this case
llvm-svn: 45342
This commit is contained in:
parent
3ba98109c9
commit
a0113f6c70
@ -791,7 +791,7 @@ uint32_t APInt::countLeadingOnes() const {
|
||||
|
||||
uint32_t APInt::countTrailingZeros() const {
|
||||
if (isSingleWord())
|
||||
return std::min(CountTrailingZeros_64(VAL), BitWidth);
|
||||
return std::min(uint32_t(CountTrailingZeros_64(VAL)), BitWidth);
|
||||
uint32_t Count = 0;
|
||||
uint32_t i = 0;
|
||||
for (; i < getNumWords() && pVal[i] == 0; ++i)
|
||||
|
Loading…
Reference in New Issue
Block a user