summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGBlocks.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-04-30 21:35:41 +0000
committerJohn McCall <rjmccall@apple.com>2010-04-30 21:35:41 +0000
commit4d4dcc8ed7441ceda5b975e7a1a0ead0a2ab86b2 (patch)
tree7e7106c46d20a275a7dc2eaf4ab5bba63de4fee7 /clang/lib/CodeGen/CGBlocks.cpp
parent09452cecd8cc46092260a2c399033a3c78b8f2ab (diff)
downloadbcm5719-llvm-4d4dcc8ed7441ceda5b975e7a1a0ead0a2ab86b2.tar.gz
bcm5719-llvm-4d4dcc8ed7441ceda5b975e7a1a0ead0a2ab86b2.zip
When synthesizing Objective C records, give the synthetic fields public
access. Fixes an assertion. Fixes rdar://problem/7927811. Too lazy to reduce a test case. llvm-svn: 102776
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
-rw-r--r--clang/lib/CodeGen/CGBlocks.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp
index 2997b21915f..db24def216d 100644
--- a/clang/lib/CodeGen/CGBlocks.cpp
+++ b/clang/lib/CodeGen/CGBlocks.cpp
@@ -706,7 +706,7 @@ CodeGenFunction::GenerateBlockFunction(const BlockExpr *BExpr,
BlockDeclRefDecls);
// FIXME: This leaks
ImplicitParamDecl *SelfDecl =
- ImplicitParamDecl::Create(getContext(), 0,
+ ImplicitParamDecl::Create(getContext(), const_cast<BlockDecl*>(BD),
SourceLocation(), II,
ParmTy);
OpenPOWER on IntegriCloud