summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-09-10 23:38:45 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-09-10 23:38:45 +0000
commit8d6298b2724342240abefafd01621942fe554812 (patch)
treefe9ad816cb5f24e8b2c885bd3847f87f5f053084 /clang/lib/AST/ASTContext.cpp
parent7190d480758fd7fe2f9d87bee25b97468fcbf39f (diff)
downloadbcm5719-llvm-8d6298b2724342240abefafd01621942fe554812.tar.gz
bcm5719-llvm-8d6298b2724342240abefafd01621942fe554812.zip
Fix a regression where write-barrier was not being generated
for block pointer. llvm-svn: 81479
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r--clang/lib/AST/ASTContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index bf1fac9eec1..84a5195a60e 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -3391,7 +3391,7 @@ QualType::GCAttrTypes ASTContext::getObjCGCAttrKind(const QualType &Ty) const {
// (or pointers to them) be treated as though they were declared
// as __strong.
if (GCAttrs == QualType::GCNone) {
- if (Ty->isObjCObjectPointerType())
+ if (Ty->isObjCObjectPointerType() || Ty->isBlockPointerType())
GCAttrs = QualType::Strong;
else if (Ty->isPointerType())
return getObjCGCAttrKind(Ty->getAs<PointerType>()->getPointeeType());
OpenPOWER on IntegriCloud