aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-09-25 04:29:44 +0000
committerChris Lattner <sabre@nondot.org>2007-09-25 04:29:44 +0000
commit92dfb4784fa4451569e985894a5accd257b98b6b (patch)
treed7b7399bb9f276593f1ecf8d872293ca3d7dbac3
parent67cfad6fda64fd8d1a22142a894a3892e87e76be (diff)
use the right rounding mode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42291 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--AST/Expr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/AST/Expr.cpp b/AST/Expr.cpp
index 98963de633..ce6636a52a 100644
--- a/AST/Expr.cpp
+++ b/AST/Expr.cpp
@@ -753,7 +753,7 @@ bool Expr::isIntegerConstantExpr(llvm::APSInt &Result, ASTContext &Ctx,
llvm::APFloat::opStatus Status =
FL->getValue().convertToInteger(Space, DestWidth, DestSigned,
- llvm::APFloat::rmNearestTiesToEven);
+ llvm::APFloat::rmTowardZero);
if (Status != llvm::APFloat::opOK && Status != llvm::APFloat::opInexact) {
if (Loc) *Loc = Operand->getLocStart();
return false; // FIXME: need to accept this as an extension.