diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2007-12-24 11:16:47 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2007-12-24 11:16:47 +0000 |
commit | a0bd36ca99427e479df6cb41aa30ece164c727a1 (patch) | |
tree | 604efe48de542e060d684fe4444590f594d91382 /lib/Support | |
parent | acf24d7f1640c533abf3dccb7d96eaa5fea9a379 (diff) | |
download | external_llvm-a0bd36ca99427e479df6cb41aa30ece164c727a1.zip external_llvm-a0bd36ca99427e479df6cb41aa30ece164c727a1.tar.gz external_llvm-a0bd36ca99427e479df6cb41aa30ece164c727a1.tar.bz2 |
Cygwin defines uint32_t as unsigned long. Unbreak call to std::min in this case
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45342 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/APInt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/APInt.cpp b/lib/Support/APInt.cpp index 9fd11e9..688071a 100644 --- a/lib/Support/APInt.cpp +++ b/lib/Support/APInt.cpp @@ -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) |