diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-08-10 23:56:17 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-08-10 23:56:17 +0000 |
commit | 8c64e007d9b2f719613f7d79b0b32d2f50da9332 (patch) | |
tree | bb32ec503e7f8588d28995a49923403336e8517b /lib/CodeGen/CodeGenModule.cpp | |
parent | 2ef13e5abef0570a9f567b4671367275c05d4d34 (diff) |
Support for anonymous union in ctor's initializer and
bunch of FIXMEs for their is-gen.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78623 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index df9b341ac9..59f44de26a 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -699,6 +699,8 @@ void CodeGenModule::DeferredCopyConstructorToEmit(GlobalDecl CopyCtorDecl) { for (CXXRecordDecl::field_iterator Field = ClassDecl->field_begin(), FieldEnd = ClassDecl->field_end(); Field != FieldEnd; ++Field) { + assert(!(*Field)->isAnonymousStructOrUnion() && + "FIXME. Anonymous union NYI - DeferredCopyConstructorToEmit"); QualType FieldType = Context.getCanonicalType((*Field)->getType()); if (const ArrayType *Array = Context.getAsArrayType(FieldType)) FieldType = Array->getElementType(); |