[cfe-commits] r110340 - /cfe/trunk/lib/CodeGen/CGObjCMac.cpp
Fariborz Jahanian
fjahanian at apple.com
Thu Aug 5 09:13:18 PDT 2010
Author: fjahanian
Date: Thu Aug 5 11:13:18 2010
New Revision: 110340
URL: http://llvm.org/viewvc/llvm-project?rev=110340&view=rev
Log:
For now skip over aggregate non-byref block variables.
(objc gc specific).
Modified:
cfe/trunk/lib/CodeGen/CGObjCMac.cpp
Modified: cfe/trunk/lib/CodeGen/CGObjCMac.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjCMac.cpp?rev=110340&r1=110339&r2=110340&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjCMac.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjCMac.cpp Thu Aug 5 11:13:18 2010
@@ -1727,8 +1727,11 @@
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
More information about the cfe-commits
mailing list