[Lldb-commits] [PATCH] D22218: Dwarf parser: don't lookup void typedefs in the DWO

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Jul 12 02:33:57 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL275164: Dwarf parser: don't lookup void typedefs in the DWO (authored by labath).

Changed prior to commit:
  http://reviews.llvm.org/D22218?vs=63499&id=63657#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D22218

Files:
  lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp

Index: lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
===================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
@@ -328,7 +328,7 @@
                         }
                     }
 
-                    if (tag == DW_TAG_typedef)
+                    if (tag == DW_TAG_typedef && encoding_uid.IsValid())
                     {
                         // Try to parse a typedef from the DWO file first as modules
                         // can contain typedef'ed structures that have no names like:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22218.63657.patch
Type: text/x-patch
Size: 674 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160712/7113cdb1/attachment.bin>


More information about the lldb-commits mailing list