diff options
author | Ted Kremenek <kremenek@apple.com> | 2012-02-10 02:45:47 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2012-02-10 02:45:47 +0000 |
commit | d6cf912e1e33167452f328d15b98a790c58c03c0 (patch) | |
tree | 3fd3a053b9530dc87549b944b427fe39e8a8255e /lib/Sema/SemaExprObjC.cpp | |
parent | 572ae0a32ece4bd7ea24e3d8f9bfe3e11aa26414 (diff) |
Revert r145999. This turned out to be a bad idea. Unfortunately, 'id' is used so profusely
in many APIs and large codebases that this made the deprecated warning trigger happy to
the point of not being useful.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150223 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExprObjC.cpp')
-rw-r--r-- | lib/Sema/SemaExprObjC.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Sema/SemaExprObjC.cpp b/lib/Sema/SemaExprObjC.cpp index 9b33b1e5f1..497b2ec5f5 100644 --- a/lib/Sema/SemaExprObjC.cpp +++ b/lib/Sema/SemaExprObjC.cpp @@ -1279,9 +1279,6 @@ ExprResult Sema::BuildInstanceMessage(Expr *Receiver, Method = LookupFactoryMethodInGlobalPool(Sel, SourceRange(LBracLoc, RBracLoc), receiverIsId); - if (Method) - DiagnoseAvailabilityOfDecl(Method, Loc, 0); - } else if (ReceiverType->isObjCClassType() || ReceiverType->isObjCQualifiedClassType()) { // Handle messages to Class. |