diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-09-11 17:39:05 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-09-11 17:39:05 +0000 |
commit | 10e9bffde3c89d1da873f8ec4832c2301b2282cf (patch) | |
tree | 4e15183d4b7a7be6e0ac9371b99e8e5e2286dbe4 | |
parent | 4bd8040d14589b0900954672bc86c15bd6e0e7d0 (diff) | |
download | bcm5719-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.cpp | 2 |
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>()) |