Ivar access mode ObjCIvarDecl::None == ObjCIvarDecl::Protected, not private.
llvm-svn: 53953
This commit is contained in:
parent
19f4e16f3e
commit
6b6a4b6446
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue