[Lldb-commits] [lldb] 9072f01 - Remove redundant check. (NFC)

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Wed Nov 13 14:19:21 PST 2019


Author: Adrian Prantl
Date: 2019-11-13T14:19:01-08:00
New Revision: 9072f0103b3d54a0db76c881edce03fbe7cb973c

URL: https://github.com/llvm/llvm-project/commit/9072f0103b3d54a0db76c881edce03fbe7cb973c
DIFF: https://github.com/llvm/llvm-project/commit/9072f0103b3d54a0db76c881edce03fbe7cb973c.diff

LOG: Remove redundant check. (NFC)

Added: 
    

Modified: 
    lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
index c9dab6585280..51a9c490bd80 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
@@ -188,9 +188,6 @@ TypeSP DWARFASTParserClang::ParseTypeFromClangModule(const DWARFDIE &die,
   dwo_module_sp->GetSymbolFile()->FindTypes(decl_context, languages,
                                             searched_symbol_files, pcm_types);
   if (pcm_types.Empty()) {
-    if (!IsClangModuleFwdDecl(die))
-      return TypeSP();
-
     // Since this type is defined in one of the Clang modules imported
     // by this symbol file, search all of them.
     auto &sym_file = die.GetCU()->GetSymbolFileDWARF();


        


More information about the lldb-commits mailing list