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 | 8fe261c229dbd8516e13c6e5a3ad5fc554ad0d26 (patch) | |
tree | 54b351277c49384bb7e1dc1a5684bfeba012d3c1 /lib/Sema/SemaDeclObjC.cpp | |
parent | 785c47f70f19be1abdb5be2ebadcc8d9c29cd627 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224881 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclObjC.cpp')
-rw-r--r-- | lib/Sema/SemaDeclObjC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp index 90835be722..7e3da941b3 100644 --- a/lib/Sema/SemaDeclObjC.cpp +++ b/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 |