summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGObjCMac.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2014-03-04 22:57:32 +0000
committerFariborz Jahanian <fjahanian@apple.com>2014-03-04 22:57:32 +0000
commit7a5830294f69089d1a17af34053bb8ab502be052 (patch)
treedd373db68a2383734b0d7d7679e9cbe94c2c96ec /clang/lib/CodeGen/CGObjCMac.cpp
parentf1f45e754e142e599bbfd71eb5ca4ce737675b41 (diff)
downloadbcm5719-llvm-7a5830294f69089d1a17af34053bb8ab502be052.tar.gz
bcm5719-llvm-7a5830294f69089d1a17af34053bb8ab502be052.zip
Objective-C. Return 0 as class of methods in protocols.
This simplifies my last patch a bit. No change in functionality. llvm-svn: 202906
Diffstat (limited to 'clang/lib/CodeGen/CGObjCMac.cpp')
-rw-r--r--clang/lib/CodeGen/CGObjCMac.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp
index ebbd7007c14..d0419ec1632 100644
--- a/clang/lib/CodeGen/CGObjCMac.cpp
+++ b/clang/lib/CodeGen/CGObjCMac.cpp
@@ -1455,8 +1455,7 @@ private:
// interface, we cannot perform this check.
if (const ObjCMethodDecl *MD =
dyn_cast_or_null<ObjCMethodDecl>(CGF.CurFuncDecl))
- if (MD->isInstanceMethod() &&
- !isa<ObjCProtocolDecl>(MD->getDeclContext()))
+ if (MD->isInstanceMethod())
if (const ObjCInterfaceDecl *ID = MD->getClassInterface())
return IV->getContainingInterface()->isSuperClassOf(ID);
return false;
OpenPOWER on IntegriCloud