[cfe-commits] r53953 - /cfe/trunk/lib/Analysis/CheckObjCUnusedIVars.cpp
Ted Kremenek
kremenek at apple.com
Wed Jul 23 10:14:39 PDT 2008
Author: kremenek
Date: Wed Jul 23 12:14:39 2008
New Revision: 53953
URL: http://llvm.org/viewvc/llvm-project?rev=53953&view=rev
Log:
Ivar access mode ObjCIvarDecl::None == ObjCIvarDecl::Protected, not private.
Modified:
cfe/trunk/lib/Analysis/CheckObjCUnusedIVars.cpp
Modified: cfe/trunk/lib/Analysis/CheckObjCUnusedIVars.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CheckObjCUnusedIVars.cpp?rev=53953&r1=53952&r2=53953&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CheckObjCUnusedIVars.cpp (original)
+++ cfe/trunk/lib/Analysis/CheckObjCUnusedIVars.cpp Wed Jul 23 12:14:39 2008
@@ -55,8 +55,7 @@
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)
More information about the cfe-commits
mailing list