[llvm-commits] [llvm] r135261 - /llvm/trunk/lib/Support/APFloat.cpp
Chandler Carruth
chandlerc at gmail.com
Fri Jul 15 00:31:10 PDT 2011
Author: chandlerc
Date: Fri Jul 15 02:31:10 2011
New Revision: 135261
URL: http://llvm.org/viewvc/llvm-project?rev=135261&view=rev
Log:
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.
Modified:
llvm/trunk/lib/Support/APFloat.cpp
Modified: llvm/trunk/lib/Support/APFloat.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/APFloat.cpp?rev=135261&r1=135260&r2=135261&view=diff
==============================================================================
--- llvm/trunk/lib/Support/APFloat.cpp (original)
+++ llvm/trunk/lib/Support/APFloat.cpp Fri Jul 15 02:31:10 2011
@@ -2098,7 +2098,7 @@
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;
}
More information about the llvm-commits
mailing list