diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-08-05 16:13:18 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-08-05 16:13:18 +0000 |
commit | 8ada8eb194773fb22560925a1b726971b1f76128 (patch) | |
tree | ba7df65b0f572d50717e8fd246806c7ff9b87eee /lib/CodeGen/CGObjCMac.cpp | |
parent | 5af1235d48d7bde471eb63fe6e1729be7c0308b8 (diff) |
For now skip over aggregate non-byref block variables.
(objc gc specific).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110340 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjCMac.cpp')
-rw-r--r-- | lib/CodeGen/CGObjCMac.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp index a453ebb4b6..b8ed516ad7 100644 --- a/lib/CodeGen/CGObjCMac.cpp +++ b/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 |