[cfe-commits] r81535 - /cfe/trunk/lib/CodeGen/CGObjCMac.cpp

Fariborz Jahanian fjahanian at apple.com
Fri Sep 11 10:39:06 PDT 2009


Author: fjahanian
Date: Fri Sep 11 12:39:05 2009
New Revision: 81535

URL: http://llvm.org/viewvc/llvm-project?rev=81535&view=rev
Log:
Fixes a regression in objc GC layout bitmap involving
block pointer ivars.

Modified:
    cfe/trunk/lib/CodeGen/CGObjCMac.cpp

Modified: cfe/trunk/lib/CodeGen/CGObjCMac.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjCMac.cpp?rev=81535&r1=81534&r2=81535&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjCMac.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjCMac.cpp Fri Sep 11 12:39:05 2009
@@ -2997,7 +2997,7 @@
   if (FQT.isObjCGCWeak())
     return QualType::Weak;
 
-  if (FQT->isObjCObjectPointerType())
+  if (FQT->isObjCObjectPointerType() || FQT->isBlockPointerType())
     return QualType::Strong;
 
   if (const PointerType *PT = FQT->getAs<PointerType>())





More information about the cfe-commits mailing list