summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Core.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-10-09 23:00:39 +0000
committerDale Johannesen <dalej@apple.com>2008-10-09 23:00:39 +0000
commit4f0bd68cfe4f72902215e1c27411286a8bb7d641 (patch)
treec8880de304064760a3dea7762950f59e7c034cb7 /llvm/lib/VMCore/Core.cpp
parent54306fe499499e57ac1bf8c9cd4fbe8321015ffd (diff)
downloadbcm5719-llvm-4f0bd68cfe4f72902215e1c27411286a8bb7d641.tar.gz
bcm5719-llvm-4f0bd68cfe4f72902215e1c27411286a8bb7d641.zip
Add a "loses information" return value to APFloat::convert
and APFloat::convertToInteger. Restore return value to IEEE754. Adjust all users accordingly. llvm-svn: 57329
Diffstat (limited to 'llvm/lib/VMCore/Core.cpp')
-rw-r--r--llvm/lib/VMCore/Core.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Core.cpp b/llvm/lib/VMCore/Core.cpp
index a802373f82c..afc1c905fc0 100644
--- a/llvm/lib/VMCore/Core.cpp
+++ b/llvm/lib/VMCore/Core.cpp
@@ -302,7 +302,9 @@ static const fltSemantics &SemanticsForType(Type *Ty) {
LLVMValueRef LLVMConstReal(LLVMTypeRef RealTy, double N) {
APFloat APN(N);
- APN.convert(SemanticsForType(unwrap(RealTy)), APFloat::rmNearestTiesToEven);
+ bool ignored;
+ APN.convert(SemanticsForType(unwrap(RealTy)), APFloat::rmNearestTiesToEven,
+ &ignored);
return wrap(ConstantFP::get(APN));
}
OpenPOWER on IntegriCloud