summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2013-08-20 22:44:32 +0000
committerEli Friedman <eli.friedman@gmail.com>2013-08-20 22:44:32 +0000
commit85698c8d7ba1073ea1a2025a6166d8e52835c9dd (patch)
tree60eefb19f64a724f29fe1ffac0066c241b37e074 /clang/lib/Parse
parent571c3ae7d676ac36a1c9d8d993748f55ed70e332 (diff)
downloadbcm5719-llvm-85698c8d7ba1073ea1a2025a6166d8e52835c9dd.tar.gz
bcm5719-llvm-85698c8d7ba1073ea1a2025a6166d8e52835c9dd.zip
Remove Extension warning for GNU local labels.
We generally don't warn about extensions involving keywords reserved for the implementation, so we shouldn't warn here either: the standard doesn't require it, and it doesn't provide useful information to the user. llvm-svn: 188840
Diffstat (limited to 'clang/lib/Parse')
-rw-r--r--clang/lib/Parse/ParseStmt.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseStmt.cpp b/clang/lib/Parse/ParseStmt.cpp
index 3b6a2656099..0638e915fe3 100644
--- a/clang/lib/Parse/ParseStmt.cpp
+++ b/clang/lib/Parse/ParseStmt.cpp
@@ -797,7 +797,6 @@ StmtResult Parser::ParseCompoundStatementBody(bool isStmtExpr) {
// only allowed at the start of a compound stmt regardless of the language.
while (Tok.is(tok::kw___label__)) {
SourceLocation LabelLoc = ConsumeToken();
- Diag(LabelLoc, diag::ext_gnu_local_label);
SmallVector<Decl *, 8> DeclsInGroup;
while (1) {
OpenPOWER on IntegriCloud