From: Ted Kremenek Date: Thu, 24 Jul 2008 23:59:07 +0000 (+0000) Subject: Use ASTContext::isObjCObjectPointerType() to check if an ivar is a reference to an... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec455e0564e84cfbaae7e706eedfb416871aae76;p=clang 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 --- diff --git a/lib/Analysis/CheckObjCDealloc.cpp b/lib/Analysis/CheckObjCDealloc.cpp index 6da52baed2..a67f84a79a 100644 --- a/lib/Analysis/CheckObjCDealloc.cpp +++ b/lib/Analysis/CheckObjCDealloc.cpp @@ -71,9 +71,9 @@ void clang::CheckObjCDealloc(ObjCImplementationDecl* D, ObjCIvarDecl* ID = *I; QualType T = ID->getType(); - if ((T->isPointerType() || T->isObjCQualifiedIdType()) && - (ID->getAttr() == 0 && // Skip IBOutlets. - !isSEL(T, SelII))) { // Skip SEL ivars. + if ((T->isPointerType() || Ctx.isObjCObjectPointerType(T)) && + (ID->getAttr() == 0 && // Skip IBOutlets. + !isSEL(T, SelII))) { // Skip SEL ivars. containsPointerIvar = true; break; }