aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2007-12-18 21:41:31 +0000
committerSteve Naroff <snaroff@apple.com>2007-12-18 21:41:31 +0000
commit49747fdd0a05dfc1f15910267d6f86dfe83e6fc8 (patch)
tree267d1ff4f7db6ae51e67be0829207a5eb18de81a
parent525fdbc2a8511080a1665838723ad56ee2b28ce4 (diff)
Fix serious regression with ObjcInterfaceDecl. Now that we are storing -1 to mean undefined, we need to change the respective getters from unsigned->int.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45179 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/DeclObjC.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/clang/AST/DeclObjC.h b/include/clang/AST/DeclObjC.h
index 40023c60ea..3ff7746204 100644
--- a/include/clang/AST/DeclObjC.h
+++ b/include/clang/AST/DeclObjC.h
@@ -785,10 +785,10 @@ public:
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