Ivar access mode ObjCIvarDecl::None == ObjCIvarDecl::Protected, not private.

llvm-svn: 53953
This commit is contained in:
Ted Kremenek 2008-07-23 17:14:39 +00:00
parent 19f4e16f3e
commit 6b6a4b6446
1 changed files with 1 additions and 2 deletions

View File

@ -55,8 +55,7 @@ void clang::CheckObjCUnusedIvar(ObjCImplementationDecl* D, BugReporter& BR) {
ObjCIvarDecl* ID = *I;
// Ignore ivars that aren't private.
ObjCIvarDecl::AccessControl ac = ID->getAccessControl();
if (!(ac == ObjCIvarDecl::None || ac == ObjCIvarDecl::Private))
if (ID->getAccessControl() != ObjCIvarDecl::Private)
continue;
if (ID->getAttr<IBOutletAttr>() == 0)