diff options
author | Dale Johannesen <dalej@apple.com> | 2008-10-09 23:01:34 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-10-09 23:01:34 +0000 |
commit | 236bbd414618ec7ff13e0ff795b94ab7d2af13ee (patch) | |
tree | c4525f5326f39ba5363f01cd29f1499d3afe1eb1 /lib/AsmParser/llvmAsmParser.y.cvs | |
parent | 8aaec36fa760c9dd50627e397ca85798d9eb6e79 (diff) | |
download | external_llvm-236bbd414618ec7ff13e0ff795b94ab7d2af13ee.tar.gz external_llvm-236bbd414618ec7ff13e0ff795b94ab7d2af13ee.tar.bz2 external_llvm-236bbd414618ec7ff13e0ff795b94ab7d2af13ee.zip |
Generated files for previous checkin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57331 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/llvmAsmParser.y.cvs')
-rw-r--r-- | lib/AsmParser/llvmAsmParser.y.cvs | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/AsmParser/llvmAsmParser.y.cvs b/lib/AsmParser/llvmAsmParser.y.cvs index 9dc070230d..a7a4bc00ef 100644 --- a/lib/AsmParser/llvmAsmParser.y.cvs +++ b/lib/AsmParser/llvmAsmParser.y.cvs @@ -428,8 +428,11 @@ static Value *getExistingVal(const Type *Ty, const ValID &D) { // Lexer has no type info, so builds all float and double FP constants // as double. Fix this here. Long double does not need this. if (&D.ConstPoolFP->getSemantics() == &APFloat::IEEEdouble && - Ty==Type::FloatTy) - D.ConstPoolFP->convert(APFloat::IEEEsingle, APFloat::rmNearestTiesToEven); + Ty==Type::FloatTy) { + bool ignored; + D.ConstPoolFP->convert(APFloat::IEEEsingle, APFloat::rmNearestTiesToEven, + &ignored); + } return ConstantFP::get(*D.ConstPoolFP); case ValID::ConstNullVal: // Is it a null value? @@ -1929,8 +1932,11 @@ ConstVal: Types '[' ConstVector ']' { // Nonempty unsized arr GEN_ERROR("Floating point constant invalid for type"); // Lexer has no type info, so builds all float and double FP constants // as double. Fix this here. Long double is done right. - if (&$2->getSemantics()==&APFloat::IEEEdouble && $1==Type::FloatTy) - $2->convert(APFloat::IEEEsingle, APFloat::rmNearestTiesToEven); + if (&$2->getSemantics()==&APFloat::IEEEdouble && $1==Type::FloatTy) { + bool ignored; + $2->convert(APFloat::IEEEsingle, APFloat::rmNearestTiesToEven, + &ignored); + } $$ = ConstantFP::get(*$2); delete $2; CHECK_FOR_ERROR |