diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-07-15 07:31:10 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-07-15 07:31:10 +0000 |
commit | 1bf4a30d4d3310d860950d15bcb89a8b112da39c (patch) | |
tree | ce6e0ba29b0013fc955bb49265588bc2d52bb986 | |
parent | f92ac9eb7dea980c8271bacb5892b91987739c3a (diff) | |
download | llvm-1bf4a30d4d3310d860950d15bcb89a8b112da39c.zip llvm-1bf4a30d4d3310d860950d15bcb89a8b112da39c.tar.gz llvm-1bf4a30d4d3310d860950d15bcb89a8b112da39c.tar.bz2 |
Explicitly cast the second argument to unsigned in order to select the
desired overload.
This is a bit of a hackish workaround to fix the compile after r135259.
Let me know if there is a better approach.
llvm-svn: 135261
-rw-r--r-- | llvm/lib/Support/APFloat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/APFloat.cpp b/llvm/lib/Support/APFloat.cpp index a46cc8d..c64da6e 100644 --- a/llvm/lib/Support/APFloat.cpp +++ b/llvm/lib/Support/APFloat.cpp @@ -2098,7 +2098,7 @@ APFloat::convertToInteger(APSInt &result, opStatus status = convertToInteger( parts.data(), bitWidth, result.isSigned(), rounding_mode, isExact); // Keeps the original signed-ness. - result = APInt(bitWidth, parts.size(), parts.data()); + result = APInt(bitWidth, (unsigned)parts.size(), parts.data()); return status; } |