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 | 296584b2a9a563c9315ccf989f60fe8b8b582156 (patch) | |
tree | ed193017f89c3098db32732125657993f6adbdc4 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 475f8a4fa27a280f6320b72824988f9807e5a2fe (diff) | |
download | bcm5719-llvm-296584b2a9a563c9315ccf989f60fe8b8b582156.tar.gz bcm5719-llvm-296584b2a9a563c9315ccf989f60fe8b8b582156.zip |
Support for anonymous union in ctor's initializer and
bunch of FIXMEs for their is-gen.
llvm-svn: 78623
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index df9b341ac9b..59f44de26ad 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/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(); |