diff options
author | Erik Pilkington <erik.pilkington@gmail.com> | 2019-08-02 19:25:58 +0000 |
---|---|---|
committer | Erik Pilkington <erik.pilkington@gmail.com> | 2019-08-02 19:25:58 +0000 |
commit | 06cccc5e6f7a7c496ae71a959b64a0247c8ca263 (patch) | |
tree | 1df20c267d829c703d0b03aabedbef6dc844ab00 /clang/lib/Parse/ParseObjc.cpp | |
parent | 5fb56b1966550857bd8ea3261ee69f0160355f15 (diff) | |
download | bcm5719-llvm-06cccc5e6f7a7c496ae71a959b64a0247c8ca263.tar.gz bcm5719-llvm-06cccc5e6f7a7c496ae71a959b64a0247c8ca263.zip |
Remove a dead diagnostic, NFC
This was issued in Objective-C 1 mode, but we not longer support that, so this
is just unreachable.
llvm-svn: 367708
Diffstat (limited to 'clang/lib/Parse/ParseObjc.cpp')
-rw-r--r-- | clang/lib/Parse/ParseObjc.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/Parse/ParseObjc.cpp b/clang/lib/Parse/ParseObjc.cpp index 8937a0986c9..42d6221a733 100644 --- a/clang/lib/Parse/ParseObjc.cpp +++ b/clang/lib/Parse/ParseObjc.cpp @@ -710,7 +710,6 @@ void Parser::ParseObjCInterfaceDeclList(tok::ObjCKeywordKind contextKey, case tok::objc_required: case tok::objc_optional: // This is only valid on protocols. - // FIXME: Should this check for ObjC2 being enabled? if (contextKey != tok::objc_protocol) Diag(AtLoc, diag::err_objc_directive_only_in_protocol); else @@ -718,9 +717,6 @@ void Parser::ParseObjCInterfaceDeclList(tok::ObjCKeywordKind contextKey, break; case tok::objc_property: - if (!getLangOpts().ObjC) - Diag(AtLoc, diag::err_objc_properties_require_objc2); - ObjCDeclSpec OCDS; SourceLocation LParenLoc; // Parse property attribute list, if any. |