diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2013-07-26 00:06:45 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2013-07-26 00:06:45 +0000 |
| commit | ab09187553f22f42c528bd4d24c73318246a7947 (patch) | |
| tree | 54190405b35049f874798581e909982c8b539394 /clang/lib/Sema | |
| parent | 602577569d1a8b4c9f53739b236f0a945f1ec2f3 (diff) | |
| download | bcm5719-llvm-ab09187553f22f42c528bd4d24c73318246a7947.tar.gz bcm5719-llvm-ab09187553f22f42c528bd4d24c73318246a7947.zip | |
Partially revert r186903.
It turns out that Plum Hall depends on us not emitting an error on
integer literals which fit into long long, but fit into
unsigned long long. So C99 conformance requires not conforming to C99. :)
llvm-svn: 187172
Diffstat (limited to 'clang/lib/Sema')
| -rw-r--r-- | clang/lib/Sema/SemaExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index 8b7829d8a5d..5b0029a91f3 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/lib/Sema/SemaExpr.cpp @@ -3079,7 +3079,7 @@ ExprResult Sema::ActOnNumericConstant(const Token &Tok, Scope *UDLScope) { // If we still couldn't decide a type, we probably have something that // does not fit in a signed long long, but has no U suffix. if (Ty.isNull()) { - Diag(Tok.getLocation(), diag::err_integer_too_large_for_signed); + Diag(Tok.getLocation(), diag::warn_integer_too_large_for_signed); Ty = Context.UnsignedLongLongTy; Width = Context.getTargetInfo().getLongLongWidth(); } |

