diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-07-25 18:17:35 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-07-25 18:17:35 +0000 |
commit | a95acd672d2ba38b3016a345681889299ce828f9 (patch) | |
tree | 6845b5b5a3fd56b2e993a955f0785d901bed38e1 /lib/Analysis/CheckObjCDealloc.cpp | |
parent | baf0d6678418e0dd9309438c3e50274253cfc7b2 (diff) |
Remove call to isSEL and isSEL itself since the call is dead (isObjCObjectPointerType() will never return true for selectors).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54034 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CheckObjCDealloc.cpp')
-rw-r--r-- | lib/Analysis/CheckObjCDealloc.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/Analysis/CheckObjCDealloc.cpp b/lib/Analysis/CheckObjCDealloc.cpp index ba0eb6ac6a..39d1e05b94 100644 --- a/lib/Analysis/CheckObjCDealloc.cpp +++ b/lib/Analysis/CheckObjCDealloc.cpp @@ -42,13 +42,6 @@ static bool scan_dealloc(Stmt* S, Selector Dealloc) { return false; } -static bool isSEL(QualType T, IdentifierInfo* SelII) { - if (const TypedefType* Ty = T->getAsTypedefType()) - return Ty->getDecl()->getIdentifier() == SelII; - - return false; -} - void clang::CheckObjCDealloc(ObjCImplementationDecl* D, const LangOptions& LOpts, BugReporter& BR) { @@ -63,7 +56,6 @@ void clang::CheckObjCDealloc(ObjCImplementationDecl* D, // http://llvm.org/bugs/show_bug.cgi?id=2517 bool containsPointerIvar = false; - IdentifierInfo* SelII = &Ctx.Idents.get("SEL"); for (ObjCInterfaceDecl::ivar_iterator I=ID->ivar_begin(), E=ID->ivar_end(); I!=E; ++I) { @@ -72,8 +64,7 @@ void clang::CheckObjCDealloc(ObjCImplementationDecl* D, QualType T = ID->getType(); if (!Ctx.isObjCObjectPointerType(T) || - ID->getAttr<IBOutletAttr>() || // Skip IBOutlets. - isSEL(T, SelII)) // Skip SEL ivars. + ID->getAttr<IBOutletAttr>()) // Skip IBOutlets. continue; containsPointerIvar = true; |