diff options
| author | Nico Weber <nicolasweber@gmx.de> | 2014-12-27 07:09:37 +0000 |
|---|---|---|
| committer | Nico Weber <nicolasweber@gmx.de> | 2014-12-27 07:09:37 +0000 |
| commit | e3b11043d0930fb36458e0a693f6ae47546cd08b (patch) | |
| tree | 6093a6002d00efac8bed6d3c6f4e407902d5faee /clang/lib/Sema | |
| parent | dd84ec5fd9b0a2fe6d9611c53bad36291bc97c0e (diff) | |
| download | bcm5719-llvm-e3b11043d0930fb36458e0a693f6ae47546cd08b.tar.gz bcm5719-llvm-e3b11043d0930fb36458e0a693f6ae47546cd08b.zip | |
Objective-C: Tweak unavailability warning.
Don't warn when a selector has an unavailable and an available variant,
and the first also has an implementation.
llvm-svn: 224881
Diffstat (limited to 'clang/lib/Sema')
| -rw-r--r-- | clang/lib/Sema/SemaDeclObjC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp index 90835be722b..7e3da941b33 100644 --- a/clang/lib/Sema/SemaDeclObjC.cpp +++ b/clang/lib/Sema/SemaDeclObjC.cpp @@ -2249,7 +2249,7 @@ void Sema::addMethodToGlobalList(ObjCMethodList *List, // Propagate the 'defined' bit. if (Method->isDefined()) PrevObjCMethod->setDefined(true); - else if (!PrevObjCMethod->isDefined()) { + else { // Objective-C doesn't allow an @interface for a class after its // @implementation. So if Method is not defined and there already is // an entry for this type signature, Method has to be for a different |

