diff options
| author | Dale Johannesen <dalej@apple.com> | 2008-10-09 23:00:39 +0000 |
|---|---|---|
| committer | Dale Johannesen <dalej@apple.com> | 2008-10-09 23:00:39 +0000 |
| commit | 4f0bd68cfe4f72902215e1c27411286a8bb7d641 (patch) | |
| tree | c8880de304064760a3dea7762950f59e7c034cb7 /llvm/lib/ExecutionEngine | |
| parent | 54306fe499499e57ac1bf8c9cd4fbe8321015ffd (diff) | |
| download | bcm5719-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/ExecutionEngine')
| -rw-r--r-- | llvm/lib/ExecutionEngine/ExecutionEngine.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp index 0731672f881..acc89c9e858 100644 --- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp @@ -498,9 +498,10 @@ GenericValue ExecutionEngine::getConstantValue(const Constant *C) { else if (Op0->getType() == Type::X86_FP80Ty) { APFloat apf = APFloat(GV.IntVal); uint64_t v; + bool ignored; (void)apf.convertToInteger(&v, BitWidth, CE->getOpcode()==Instruction::FPToSI, - APFloat::rmTowardZero); + APFloat::rmTowardZero, &ignored); GV.IntVal = v; // endian? } return GV; |

