summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-03-05 22:54:58 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-03-05 22:54:58 +0000
commitfaf156ad158ba4f7e6f4f9d1295272e81469639d (patch)
tree00e5ca83eb95a8717eea7578134033219a6a7487 /clang/lib/Sema/SemaDecl.cpp
parent6b9cf961bd3a90457dcc741a7e63ea1234cfd9b2 (diff)
downloadbcm5719-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.cpp4
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;
}
}
OpenPOWER on IntegriCloud