[Lldb-commits] [PATCH] D61394: Remove unnecessary check in SymbolFileDWARF::ParseImportedModules

Raphael Isemann via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed May 1 12:17:57 PDT 2019


teemperor created this revision.
teemperor added a reviewer: aprantl.
Herald added subscribers: lldb-commits, jdoerfert.
Herald added a project: LLDB.

This check seems unnecessary as we already assert the same condition above and also access `sc.comp_unit`
before this check.


Repository:
  rLLDB LLDB

https://reviews.llvm.org/D61394

Files:
  lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp


Index: lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
===================================================================
--- lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
+++ lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
@@ -909,9 +909,6 @@
     return false;
   UpdateExternalModuleListIfNeeded();
 
-  if (!sc.comp_unit)
-    return false;
-
   const DWARFDIE die = dwarf_cu->DIE();
   if (!die)
     return false;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61394.197607.patch
Type: text/x-patch
Size: 450 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190501/ec3eba7f/attachment.bin>


More information about the lldb-commits mailing list