[cfe-commits] r149625 - /cfe/trunk/lib/Sema/SemaObjCProperty.cpp

Fariborz Jahanian fjahanian at apple.com
Thu Feb 2 11:34:05 PST 2012


Author: fjahanian
Date: Thu Feb  2 13:34:05 2012
New Revision: 149625

URL: http://llvm.org/viewvc/llvm-project?rev=149625&view=rev
Log:
objc: comment the code which allows narroing of property object
type in continuation class.

Modified:
    cfe/trunk/lib/Sema/SemaObjCProperty.cpp

Modified: cfe/trunk/lib/Sema/SemaObjCProperty.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaObjCProperty.cpp?rev=149625&r1=149624&r2=149625&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaObjCProperty.cpp (original)
+++ cfe/trunk/lib/Sema/SemaObjCProperty.cpp Thu Feb  2 13:34:05 2012
@@ -279,6 +279,9 @@
   if (!Context.hasSameType(PIDecl->getType(), PDecl->getType())) {
     bool IncompatibleObjC = false;
     QualType ConvertedType;
+    // Relax the strict type matching for property type in continuation class.
+    // Allow property object type of continuation class to be different as long
+    // as it narrows the object type in its primary class property.
     if (!isa<ObjCObjectPointerType>(PIDecl->getType()) ||
         !isa<ObjCObjectPointerType>(PDecl->getType()) ||
         (!isObjCPointerConversion(PDecl->getType(), PIDecl->getType(), 





More information about the cfe-commits mailing list