[Lldb-commits] [lldb] r151863 - /lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

Greg Clayton gclayton at apple.com
Thu Mar 1 16:07:16 PST 2012


Author: gclayton
Date: Thu Mar  1 18:07:15 2012
New Revision: 151863

URL: http://llvm.org/viewvc/llvm-project?rev=151863&view=rev
Log:
<rdar://problem/10967107>

Don't try and unique anonymous struct/union/class types.


Modified:
    lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp?rev=151863&r1=151862&r2=151863&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp Thu Mar  1 18:07:15 2012
@@ -4759,7 +4759,9 @@
 
                     UniqueDWARFASTType unique_ast_entry;
 
-                    if (GetUniqueDWARFASTTypeMap().Find (type_name_const_str,
+                    // Only try and unique the type if it has a name. 
+                    if (type_name_const_str &&
+                        GetUniqueDWARFASTTypeMap().Find (type_name_const_str,
                                                          this,
                                                          dwarf_cu,
                                                          die,





More information about the lldb-commits mailing list