[cfe-commits] r53999 - /cfe/trunk/lib/Analysis/CheckObjCDealloc.cpp
Ted Kremenek
kremenek at apple.com
Thu Jul 24 16:59:07 PDT 2008
Author: kremenek
Date: Thu Jul 24 18:59:07 2008
New Revision: 53999
URL: http://llvm.org/viewvc/llvm-project?rev=53999&view=rev
Log:
Use ASTContext::isObjCObjectPointerType() to check if an ivar is a reference to an Objective-C object.
Modified:
cfe/trunk/lib/Analysis/CheckObjCDealloc.cpp
Modified: cfe/trunk/lib/Analysis/CheckObjCDealloc.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CheckObjCDealloc.cpp?rev=53999&r1=53998&r2=53999&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CheckObjCDealloc.cpp (original)
+++ cfe/trunk/lib/Analysis/CheckObjCDealloc.cpp Thu Jul 24 18:59:07 2008
@@ -71,9 +71,9 @@
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;
}
More information about the cfe-commits
mailing list