diff options
author | Timm Bäder <tbaeder@redhat.com> | 2021-02-23 13:20:28 +0100 |
---|---|---|
committer | Timm Bäder <tbaeder@redhat.com> | 2021-02-23 13:54:35 +0100 |
commit | 64d06ed9c9e0389cd27545d2f6e20455a91d89b1 (patch) | |
tree | 6414844a32d8f1b3151783b505175a7bbe232d44 /clang/lib/Parse/ParseDecl.cpp | |
parent | 6c78711f106fe01cd8c8c85a5c42953035453135 (diff) | |
download | llvm-64d06ed9c9e0389cd27545d2f6e20455a91d89b1.zip llvm-64d06ed9c9e0389cd27545d2f6e20455a91d89b1.tar.gz llvm-64d06ed9c9e0389cd27545d2f6e20455a91d89b1.tar.bz2 |
[clang][parse][NFC] Remove dead ProhibitAttributes() call
GNU-style attribute in enum bodies are allowed (and used by several
tests), and this call to ProhibitAttributes() was dead code.
Differential Revision: https://reviews.llvm.org/D97271
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r-- | clang/lib/Parse/ParseDecl.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index 3d5c984..069f981 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/lib/Parse/ParseDecl.cpp @@ -4771,7 +4771,6 @@ void Parser::ParseEnumBody(SourceLocation StartLoc, Decl *EnumDecl) { // If attributes exist after the enumerator, parse them. ParsedAttributesWithRange attrs(AttrFactory); MaybeParseGNUAttributes(attrs); - ProhibitAttributes(attrs); // GNU-style attributes are prohibited. if (standardAttributesAllowed() && isCXX11AttributeSpecifier()) { if (getLangOpts().CPlusPlus) Diag(Tok.getLocation(), getLangOpts().CPlusPlus17 |