summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-08-05 16:13:18 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-08-05 16:13:18 +0000
commitd652ac82b099e789ae7aa05d639651518419a1c1 (patch)
treea84ca6796f8553d507a680185c5a2552cf15fdc4 /clang
parent89f3721dee46bb184cdb39ec5a163518523ee827 (diff)
downloadbcm5719-llvm-d652ac82b099e789ae7aa05d639651518419a1c1.tar.gz
bcm5719-llvm-d652ac82b099e789ae7aa05d639651518419a1c1.zip
For now skip over aggregate non-byref block variables.
(objc gc specific). llvm-svn: 110340
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/CodeGen/CGObjCMac.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp
index a453ebb4b69..b8ed516ad7d 100644
--- a/clang/lib/CodeGen/CGObjCMac.cpp
+++ b/clang/lib/CodeGen/CGObjCMac.cpp
@@ -1727,8 +1727,11 @@ llvm::Constant *CGObjCCommonMac::GCBlockLayout(CodeGen::CodeGenFunction &CGF,
QualType Ty = VD->getType();
assert(!Ty->isArrayType() &&
"Array block variable should have been caught");
- if (Ty->isRecordType() || Ty->isUnionType())
+ // FIXME. Handle none __block Aggregate variables
+#if 0
+ if ((Ty->isRecordType() || Ty->isUnionType()) && !BDRE->isByRef())
assert(false && "Aggregate block variable layout NYI");
+#endif
Qualifiers::GC GCAttr = GetGCAttrTypeForType(CGM.getContext(), Ty);
unsigned FieldSize = CGM.getContext().getTypeSize(Ty);
// __block variables are passed by their descriptior address. So, size
OpenPOWER on IntegriCloud