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 | f4df65cf604ece65d181846acf8683e8ec32a503 (patch) | |
tree | 9fee234e1fa51efe92e30ed1242953e8fd3fd537 /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | e003dd172101030fbfb81d45b323b60441cc5fd5 (diff) | |
download | bcm5719-llvm-f4df65cf604ece65d181846acf8683e8ec32a503.tar.gz bcm5719-llvm-f4df65cf604ece65d181846acf8683e8ec32a503.zip |
Do not ignore anonymous records.
llvm-svn: 95953
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index e5162ed7f15..5b9c6b055e0 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/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. |