diff options
author | Devang Patel <dpatel@apple.com> | 2010-02-12 01:31:06 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-02-12 01:31:06 +0000 |
commit | 4835fdd4b14376fcaed71c96df1086151a4c055d (patch) | |
tree | f1224f71daeeda1bb534b12949a90018493cadc6 /lib/CodeGen/CGDebugInfo.cpp | |
parent | 4cb159ccc67a2b9814c412a47ca751995f8d3b64 (diff) |
Do not ignore anonymous records.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95953 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<RecordType>(Field->getType())) continue; // Get the location for the field. |