summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-09-11 17:39:05 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-09-11 17:39:05 +0000
commit10e9bffde3c89d1da873f8ec4832c2301b2282cf (patch)
tree4e15183d4b7a7be6e0ac9371b99e8e5e2286dbe4
parent4bd8040d14589b0900954672bc86c15bd6e0e7d0 (diff)
downloadbcm5719-llvm-10e9bffde3c89d1da873f8ec4832c2301b2282cf.tar.gz
bcm5719-llvm-10e9bffde3c89d1da873f8ec4832c2301b2282cf.zip
Fixes a regression in objc GC layout bitmap involving
block pointer ivars. llvm-svn: 81535
-rw-r--r--clang/lib/CodeGen/CGObjCMac.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp
index 9ed1c169b53..5f3009074a2 100644
--- a/clang/lib/CodeGen/CGObjCMac.cpp
+++ b/clang/lib/CodeGen/CGObjCMac.cpp
@@ -2997,7 +2997,7 @@ static QualType::GCAttrTypes GetGCAttrTypeForType(ASTContext &Ctx,
if (FQT.isObjCGCWeak())
return QualType::Weak;
- if (FQT->isObjCObjectPointerType())
+ if (FQT->isObjCObjectPointerType() || FQT->isBlockPointerType())
return QualType::Strong;
if (const PointerType *PT = FQT->getAs<PointerType>())
OpenPOWER on IntegriCloud