forked from OSchip/llvm-project
Fix serious regression with ObjcInterfaceDecl. Now that we are storing -1 to mean undefined, we need to change the respective getters from unsigned->int.
llvm-svn: 45179
This commit is contained in:
parent
166f746246
commit
824a9d8d4b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue