[cfe-commits] r45179 - /cfe/trunk/include/clang/AST/DeclObjC.h

Steve Naroff snaroff at apple.com
Tue Dec 18 13:41:32 PST 2007


Author: snaroff
Date: Tue Dec 18 15:41:31 2007
New Revision: 45179

URL: http://llvm.org/viewvc/llvm-project?rev=45179&view=rev
Log:

Fix serious regression with ObjcInterfaceDecl. Now that we are storing -1 to mean undefined, we need to change the respective getters from unsigned->int.

Modified:
    cfe/trunk/include/clang/AST/DeclObjC.h

Modified: cfe/trunk/include/clang/AST/DeclObjC.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclObjC.h?rev=45179&r1=45178&r2=45179&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/DeclObjC.h (original)
+++ cfe/trunk/include/clang/AST/DeclObjC.h Tue Dec 18 15:41:31 2007
@@ -785,10 +785,10 @@
   void setSuperClass(ObjcInterfaceDecl * superCls) 
          { SuperClass = superCls; }
   
-  unsigned getNumInstanceMethods() const { return InstanceMethods.size(); }
-  unsigned getNumClassMethods() const { return ClassMethods.size(); }
+  int getNumInstanceMethods() const { return InstanceMethods.size(); }
+  int getNumClassMethods() const { return ClassMethods.size(); }
 
-  unsigned getImplDeclNumIvars() const { return NumIvars; }
+  int getImplDeclNumIvars() const { return NumIvars; }
   
   
   typedef llvm::SmallVector<ObjcMethodDecl*, 32>::const_iterator





More information about the cfe-commits mailing list