aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/CheckObjCDealloc.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2009-07-16 15:41:00 +0000
committerSteve Naroff <snaroff@apple.com>2009-07-16 15:41:00 +0000
commitf49545602089be5b1f744e04326b8a566f6d8773 (patch)
treec6a833eba46840cff3d65f06772865ffe525c711 /lib/Analysis/CheckObjCDealloc.cpp
parent95b851e55c328af4b69da7bfc1124bf258c0ffe5 (diff)
Remove ASTContext::isObjCObjectPointerType().
Convert all clients to use the new predicate on Type. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76076 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CheckObjCDealloc.cpp')
-rw-r--r--lib/Analysis/CheckObjCDealloc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/CheckObjCDealloc.cpp b/lib/Analysis/CheckObjCDealloc.cpp
index a14ae26512..7e6023a1f5 100644
--- a/lib/Analysis/CheckObjCDealloc.cpp
+++ b/lib/Analysis/CheckObjCDealloc.cpp
@@ -108,7 +108,7 @@ void clang::CheckObjCDealloc(ObjCImplementationDecl* D,
ObjCIvarDecl* ID = *I;
QualType T = ID->getType();
- if (!Ctx.isObjCObjectPointerType(T) ||
+ if (!T->isObjCObjectPointerType() ||
ID->getAttr<IBOutletAttr>()) // Skip IBOutlets.
continue;
@@ -210,7 +210,7 @@ void clang::CheckObjCDealloc(ObjCImplementationDecl* D,
continue;
QualType T = ID->getType();
- if (!Ctx.isObjCObjectPointerType(T)) // Skip non-pointer ivars
+ if (!T->isObjCObjectPointerType()) // Skip non-pointer ivars
continue;
const ObjCPropertyDecl* PD = (*I)->getPropertyDecl();