Removed a FIXME. Added a test case for anonymous category.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60115 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp
index 9f37e90..b9fc5b7 100644
--- a/lib/Sema/SemaDeclObjC.cpp
+++ b/lib/Sema/SemaDeclObjC.cpp
@@ -1251,10 +1251,10 @@
*isOverridingProperty = true;
return 0;
}
- // else
- // FIXME:
- // no matching property found in the main class. Must simply
- // add this property to the main class's property list.
+ // No matching property found in the main class. Just fall thru
+ // and add property to the anonymous category. It looks like
+ // it works as is. This category becomes just like a category
+ // for its primary class.
} else {
Diag(CDecl->getLocation(), diag::err_continuation_class);
*isOverridingProperty = true;