diff options
Diffstat (limited to 'AST/Expr.cpp')
-rw-r--r-- | AST/Expr.cpp | 2 |
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. |