From 21db1440f9b2b69f2e665854d5f9bda52ebf92f9 Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Thu, 2 May 2019 18:26:58 +0000 Subject: [PATCH] Remove unnecessary check in SymbolFileDWARF::ParseImportedModules Summary: This check seems unnecessary as we already assert the same condition above and also access `sc.comp_unit` before this check. Reviewers: aprantl Reviewed By: aprantl Subscribers: jdoerfert, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D61394 llvm-svn: 359813 --- lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp index 2c6c272672bc..a1891caf0a07 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp @@ -909,9 +909,6 @@ bool SymbolFileDWARF::ParseImportedModules( return false; UpdateExternalModuleListIfNeeded(); - if (!sc.comp_unit) - return false; - const DWARFDIE die = dwarf_cu->DIE(); if (!die) return false;