aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2007-12-24 11:16:47 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2007-12-24 11:16:47 +0000
commit97d37260df83eaac0f8876087ad2c53f07d6efc9 (patch)
tree604efe48de542e060d684fe4444590f594d91382
parentec9e7163b8257f786fb9e0339819b1432edcf687 (diff)
downloadexternal_llvm-97d37260df83eaac0f8876087ad2c53f07d6efc9.zip
external_llvm-97d37260df83eaac0f8876087ad2c53f07d6efc9.tar.gz
external_llvm-97d37260df83eaac0f8876087ad2c53f07d6efc9.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
-rw-r--r--lib/Support/APInt.cpp2
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)