diff options
author | John McCall <rjmccall@apple.com> | 2010-02-26 23:35:57 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-02-26 23:35:57 +0000 |
commit | 2a0d7574acaa3a8d516e9ae4b720755460ebe8a8 (patch) | |
tree | e3c42cea14e9a0270625629637c2aa7c46ca4c64 /lib | |
parent | d64a4f4798907495091daf2b081c3d62d729dca9 (diff) |
At sabre's request, drop the FP bounds diagnostics down to warnings and file
them under -Wbad-literal. They're still on by default.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97284 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Sema/SemaExpr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index fc89b15c04..c25d1195d8 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -1736,10 +1736,10 @@ Action::OwningExprResult Sema::ActOnNumericConstant(const Token &Tok) { unsigned diagnostic; llvm::SmallVector<char, 20> buffer; if (result & APFloat::opOverflow) { - diagnostic = diag::err_float_overflow; + diagnostic = diag::warn_float_overflow; APFloat::getLargest(Format).toString(buffer); } else { - diagnostic = diag::err_float_underflow; + diagnostic = diag::warn_float_underflow; APFloat::getSmallest(Format).toString(buffer); } |