summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2013-06-08 13:29:58 +0000
committerSerge Pavlov <sepavloff@gmail.com>2013-06-08 13:29:58 +0000
commit89578fd4398130e24bf44e805f8f9688f72be7e1 (patch)
tree7869f1c400cd3d1f1d8a2c6a442cf5b602ea1c2b /clang/lib/Parse/ParseDecl.cpp
parentea7bb570580d1a82c8654d0ee3ce6b0a4419a35b (diff)
downloadbcm5719-llvm-89578fd4398130e24bf44e805f8f9688f72be7e1.tar.gz
bcm5719-llvm-89578fd4398130e24bf44e805f8f9688f72be7e1.zip
Recognition of empty structures and unions is moved to semantic stage
Differential Revision: http://llvm-reviews.chandlerc.com/D586 llvm-svn: 183609
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r--clang/lib/Parse/ParseDecl.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp
index 03e4879db68..b3e8412dcf2 100644
--- a/clang/lib/Parse/ParseDecl.cpp
+++ b/clang/lib/Parse/ParseDecl.cpp
@@ -3216,12 +3216,6 @@ void Parser::ParseStructUnionBody(SourceLocation RecordLoc,
ParseScope StructScope(this, Scope::ClassScope|Scope::DeclScope);
Actions.ActOnTagStartDefinition(getCurScope(), TagDecl);
- // Empty structs are an extension in C (C99 6.7.2.1p7).
- if (Tok.is(tok::r_brace)) {
- Diag(Tok, diag::ext_empty_struct_union) << (TagType == TST_union);
- Diag(Tok, diag::warn_empty_struct_union_compat) << (TagType == TST_union);
- }
-
SmallVector<Decl *, 32> FieldDecls;
// While we still have something to read, read the declarations in the struct.
OpenPOWER on IntegriCloud