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;
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;
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits