зеркало из https://github.com/microsoft/clang-1.git
Use ASTContext::isObjCObjectPointerType() to check if an ivar is a reference to an Objective-C object.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53999 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
b6ccaac65c
Коммит
ec455e0564
|
@ -71,9 +71,9 @@ void clang::CheckObjCDealloc(ObjCImplementationDecl* D,
|
|||
ObjCIvarDecl* ID = *I;
|
||||
QualType T = ID->getType();
|
||||
|
||||
if ((T->isPointerType() || T->isObjCQualifiedIdType()) &&
|
||||
(ID->getAttr<IBOutletAttr>() == 0 && // Skip IBOutlets.
|
||||
!isSEL(T, SelII))) { // Skip SEL ivars.
|
||||
if ((T->isPointerType() || Ctx.isObjCObjectPointerType(T)) &&
|
||||
(ID->getAttr<IBOutletAttr>() == 0 && // Skip IBOutlets.
|
||||
!isSEL(T, SelII))) { // Skip SEL ivars.
|
||||
containsPointerIvar = true;
|
||||
break;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче