From 32f44bd0fcf93d99dd0010bd7724c6520b716db2 Mon Sep 17 00:00:00 2001 From: John McCall Date: Tue, 12 Apr 2011 01:01:22 +0000 Subject: Ignore indirect field declarations. Fixes PR9570. llvm-svn: 129337 --- clang/lib/CodeGen/CodeGenModule.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 944b24cb..d22991d 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -2034,6 +2034,11 @@ void CodeGenModule::EmitTopLevelDecl(Decl *D) { EmitGlobal(cast(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(D)); -- cgit v1.1