use the right rounding mode.

llvm-svn: 42291
This commit is contained in:
Chris Lattner 2007-09-25 04:29:44 +00:00
parent ce5568f568
commit 70d1faa17d
1 changed files with 1 additions and 1 deletions

View File

@ -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.