aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaPseudoObject.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-04-19 23:49:39 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-04-19 23:49:39 +0000
commit9879556f250c7b692228e834d7fca8f1cb118bf6 (patch)
treeab0c7273a32363b5991f8c3005ac941d4aea10ee /lib/Sema/SemaPseudoObject.cpp
parent1e77b65b4819bc7a809245b12bd00450b4924025 (diff)
objective-arc: Retune my previous patch so warning
is issued on weak property as receiver and not on any other use of a weak property. // rdar://10225276 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155169 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaPseudoObject.cpp')
-rw-r--r--lib/Sema/SemaPseudoObject.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/Sema/SemaPseudoObject.cpp b/lib/Sema/SemaPseudoObject.cpp
index 078b0e4bc4..0e6632964a 100644
--- a/lib/Sema/SemaPseudoObject.cpp
+++ b/lib/Sema/SemaPseudoObject.cpp
@@ -478,8 +478,6 @@ bool ObjCPropertyOpBuilder::findGetter() {
if (RefExpr->isImplicitProperty()) {
if ((Getter = RefExpr->getImplicitPropertyGetter())) {
GetterSelector = Getter->getSelector();
- S.DiagnoseARCUseOfWeakReceiver(Getter, Getter->getResultType(),
- RefExpr->getLocation());
return true;
}
else {
@@ -499,8 +497,6 @@ bool ObjCPropertyOpBuilder::findGetter() {
}
ObjCPropertyDecl *prop = RefExpr->getExplicitProperty();
- S.DiagnoseARCUseOfWeakReceiver(prop, prop->getType(),
- RefExpr->getLocation());
Getter = LookupMethodInReceiverType(S, prop->getGetterName(), RefExpr);
return (Getter != 0);
}