summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/Support/APInt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp
index 9fd11e93d70..688071af0ac 100644
--- a/llvm/lib/Support/APInt.cpp
+++ b/llvm/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)
OpenPOWER on IntegriCloud