Fixed a bug in categories and properties.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49883 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp
index b0ae1f2..05371e7 100644
--- a/lib/Sema/SemaDeclObjC.cpp
+++ b/lib/Sema/SemaDeclObjC.cpp
@@ -977,7 +977,7 @@
return 0;
}
ObjCCategoryDecl *Categories;
- for (ObjCCategoryDecl *Categories = IDecl->getCategoryList();
+ for (Categories = IDecl->getCategoryList();
Categories; Categories = Categories->getNextClassCategory())
if (Categories->getIdentifier() == CatImplClass->getIdentifier())
break;