summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaChecking.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-09-13 18:31:23 +0000
committerJohn McCall <rjmccall@apple.com>2011-09-13 18:31:23 +0000
commit43192863370c121c86d49dc403fd6ff669aa5d97 (patch)
tree138a50bc03599e47f77073775c8aa90fe3abaf5b /clang/lib/Sema/SemaChecking.cpp
parent2fd89a0956b316e4ae56924c58e346657ad3690d (diff)
downloadbcm5719-llvm-43192863370c121c86d49dc403fd6ff669aa5d97.tar.gz
bcm5719-llvm-43192863370c121c86d49dc403fd6ff669aa5d97.zip
Refactoring, mostly to give ObjCPropertyDecls stronger invariants for
their semantic attributes and then to take advantage of that. llvm-svn: 139615
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r--clang/lib/Sema/SemaChecking.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index b51e8313bdb..52a20798e7e 100644
--- a/clang/lib/Sema/SemaChecking.cpp
+++ b/clang/lib/Sema/SemaChecking.cpp
@@ -3862,10 +3862,7 @@ static bool findRetainCycleOwner(Expr *e, RetainCycleOwner &owner) {
const ObjCPropertyRefExpr *pre = cast->getSubExpr()->getObjCProperty();
if (pre->isImplicitProperty()) return false;
ObjCPropertyDecl *property = pre->getExplicitProperty();
- if (!(property->getPropertyAttributes() &
- (ObjCPropertyDecl::OBJC_PR_retain |
- ObjCPropertyDecl::OBJC_PR_copy |
- ObjCPropertyDecl::OBJC_PR_strong)) &&
+ if (!property->isRetaining() &&
!(property->getPropertyIvarDecl() &&
property->getPropertyIvarDecl()->getType()
.getObjCLifetime() == Qualifiers::OCL_Strong))
OpenPOWER on IntegriCloud