[Lldb-commits] [PATCH] D77336: Findtypes -gmodules fix

Jan Kratochvil via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 2 14:39:02 PDT 2020


jankratochvil created this revision.
jankratochvil added reviewers: labath, kwk.
jankratochvil added a project: LLDB.

A little fixup so that D77327 <https://reviews.llvm.org/D77327> can be called NFC.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77336

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
@@ -2408,7 +2408,7 @@
   // Next search through the reachable Clang modules. This only applies for
   // DWARF objects compiled with -gmodules that haven't been processed by
   // dsymutil.
-  if (num_die_matches < max_matches) {
+  if (types.GetSize() < max_matches) {
     UpdateExternalModuleListIfNeeded();
 
     for (const auto &pair : m_external_type_modules)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77336.254618.patch
Type: text/x-patch
Size: 621 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200402/2f2d8d59/attachment.bin>


More information about the lldb-commits mailing list