From: Devang Patel Date: Fri, 12 Feb 2010 01:31:06 +0000 (+0000) Subject: Do not ignore anonymous records. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4835fdd4b14376fcaed71c96df1086151a4c055d;p=clang Do not ignore anonymous records. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95953 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index e5162ed7f1..5b9c6b055e 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -484,8 +484,8 @@ CollectRecordFields(const RecordDecl *RD, llvm::DICompileUnit Unit, llvm::StringRef FieldName = Field->getName(); - // Ignore unnamed fields. - if (FieldName.empty()) + // Ignore unnamed fields. Do not ignore unnamed records. + if (FieldName.empty() && !isa(Field->getType())) continue; // Get the location for the field.