diff options
author | Dale Johannesen <dalej@apple.com> | 2008-10-09 23:02:32 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-10-09 23:02:32 +0000 |
commit | ee5a700af3fe9ae1a639c271f093f40677dddc04 (patch) | |
tree | 76498e21cce6dc36aae48c15cbfe8d400330526d /lib/AST/Expr.cpp | |
parent | a90d56ea042cfdc7507b4bdf3ca1e2a34e064848 (diff) |
Adjust calls to APFloat conversion for new interface.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57332 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Expr.cpp')
-rw-r--r-- | lib/AST/Expr.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp index dfe412f4fc..943cd9a057 100644 --- a/lib/AST/Expr.cpp +++ b/lib/AST/Expr.cpp @@ -29,7 +29,9 @@ using namespace clang; /// debugging dumps, etc. double FloatingLiteral::getValueAsApproximateDouble() const { llvm::APFloat V = getValue(); - V.convert(llvm::APFloat::IEEEdouble, llvm::APFloat::rmNearestTiesToEven); + bool ignored; + V.convert(llvm::APFloat::IEEEdouble, llvm::APFloat::rmNearestTiesToEven, + &ignored); return V.convertToDouble(); } @@ -977,9 +979,11 @@ bool Expr::isIntegerConstantExpr(llvm::APSInt &Result, ASTContext &Ctx, // TODO: Warn on overflow, but probably not here: isIntegerConstantExpr can // be called multiple times per AST. - uint64_t Space[4]; + uint64_t Space[4]; + bool ignored; (void)FL->getValue().convertToInteger(Space, DestWidth, DestSigned, - llvm::APFloat::rmTowardZero); + llvm::APFloat::rmTowardZero, + &ignored); Result = llvm::APInt(DestWidth, 4, Space); break; } |