diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-03-05 22:54:58 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-03-05 22:54:58 +0000 |
commit | faf156ad158ba4f7e6f4f9d1295272e81469639d (patch) | |
tree | 00e5ca83eb95a8717eea7578134033219a6a7487 /clang/lib/Sema/SemaDecl.cpp | |
parent | 6b9cf961bd3a90457dcc741a7e63ea1234cfd9b2 (diff) | |
download | bcm5719-llvm-faf156ad158ba4f7e6f4f9d1295272e81469639d.tar.gz bcm5719-llvm-faf156ad158ba4f7e6f4f9d1295272e81469639d.zip |
Tests for DR370-380.
Also promote a couple of Warnings on ill-formed code found by this testing to
ExtWarns.
llvm-svn: 203021
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index 9870ab1e542..acf27e23c2e 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -12452,7 +12452,7 @@ EnumConstantDecl *Sema::CheckEnumConstant(EnumDecl *Enum, << EnumVal.toString(10) << EltTy; else - Diag(IdLoc, diag::warn_enumerator_too_large) + Diag(IdLoc, diag::ext_enumerator_increment_too_large) << EnumVal.toString(10); } else { EltTy = T; @@ -12850,7 +12850,7 @@ void Sema::ActOnEnumBody(SourceLocation EnumLoc, SourceLocation LBraceLoc, BestWidth = Context.getTargetInfo().getLongLongWidth(); if (NumNegativeBits > BestWidth || NumPositiveBits >= BestWidth) - Diag(Enum->getLocation(), diag::warn_enum_too_large); + Diag(Enum->getLocation(), diag::ext_enum_too_large); BestType = Context.LongLongTy; } } |