projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec9e716
)
Cygwin defines uint32_t as unsigned long. Unbreak call to std::min in this case
author
Anton Korobeynikov
<asl@math.spbu.ru>
Mon, 24 Dec 2007 11:16:47 +0000
(11:16 +0000)
committer
Anton Korobeynikov
<asl@math.spbu.ru>
Mon, 24 Dec 2007 11:16:47 +0000
(11:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45342
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/APInt.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/APInt.cpp
b/lib/Support/APInt.cpp
index 9fd11e93d704a082c594f9f381b92960b58b96fb..688071af0acb07a87c07b5cdabc635535a5f3540 100644
(file)
--- 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)