Patch to do type-checking for objctive-c's object types.
More is yet to come.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45263 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/AST/Decl.cpp b/AST/Decl.cpp
index 4310e23..b82bc39 100644
--- a/AST/Decl.cpp
+++ b/AST/Decl.cpp
@@ -516,7 +516,7 @@
   if (getNumReferencedProtocols() > 0) {
     ObjcProtocolDecl **RefPDecl = getReferencedProtocols();
     
-    for (int i = 0; i < getNumReferencedProtocols(); i++) {
+    for (unsigned i = 0; i < getNumReferencedProtocols(); i++) {
       if ((MethodDecl = RefPDecl[i]->getInstanceMethod(Sel)))
         return MethodDecl;
     }
@@ -535,7 +535,7 @@
   if (getNumReferencedProtocols() > 0) {
     ObjcProtocolDecl **RefPDecl = getReferencedProtocols();
     
-    for (int i = 0; i < getNumReferencedProtocols(); i++) {
+    for(unsigned i = 0; i < getNumReferencedProtocols(); i++) {
       if ((MethodDecl = RefPDecl[i]->getClassMethod(Sel)))
         return MethodDecl;
     }