Ignore indirect field declarations. Fixes PR9570.

llvm-svn: 129337
This commit is contained in:
John McCall
2011-04-12 01:01:22 +00:00
parent f31fac4712
commit 32f44bd0fc
2 changed files with 12 additions and 0 deletions

View File

@@ -2034,6 +2034,11 @@ void CodeGenModule::EmitTopLevelDecl(Decl *D) {
EmitGlobal(cast<VarDecl>(D));
break;
// Indirect fields from global anonymous structs and unions can be
// ignored; only the actual variable requires IR gen support.
case Decl::IndirectField:
break;
// C++ Decls
case Decl::Namespace:
EmitNamespace(cast<NamespaceDecl>(D));