diff options
author | John McCall <rjmccall@apple.com> | 2011-11-07 05:09:54 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-11-07 05:09:54 +0000 |
commit | ffc8ca2d84560774a322c2e77c3f083c2d0c386b (patch) | |
tree | 4ae28f064f4a8eecb80edae9966f5440ec19c6a0 /clang/lib/Sema/SemaChecking.cpp | |
parent | 80815600487aa8194187b9a30efd27e79d8ef37c (diff) | |
download | bcm5719-llvm-ffc8ca2d84560774a322c2e77c3f083c2d0c386b.tar.gz bcm5719-llvm-ffc8ca2d84560774a322c2e77c3f083c2d0c386b.zip |
Rip out CK_GetObjCProperty.
llvm-svn: 143910
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r-- | clang/lib/Sema/SemaChecking.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp index 8a3324230d0..50bc5755dde 100644 --- a/clang/lib/Sema/SemaChecking.cpp +++ b/clang/lib/Sema/SemaChecking.cpp @@ -4158,22 +4158,6 @@ static bool findRetainCycleOwner(Expr *e, RetainCycleOwner &owner) { e = cast->getSubExpr(); continue; - case CK_GetObjCProperty: { - // Bail out if this isn't a strong explicit property. - const ObjCPropertyRefExpr *pre = cast->getSubExpr()->getObjCProperty(); - if (pre->isImplicitProperty()) return false; - ObjCPropertyDecl *property = pre->getExplicitProperty(); - if (!property->isRetaining() && - !(property->getPropertyIvarDecl() && - property->getPropertyIvarDecl()->getType() - .getObjCLifetime() == Qualifiers::OCL_Strong)) - return false; - - owner.Indirect = true; - e = const_cast<Expr*>(pre->getBase()); - continue; - } - default: return false; } |