[Lldb-commits] [lldb] [lldb/DWARF] Remove duplicate type filtering (PR #116989)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Wed Nov 20 07:34:10 PST 2024


================
@@ -137,9 +137,19 @@ void DWARFIndex::GetTypesWithQuery(
 bool DWARFIndex::ProcessTypeDIEMatchQuery(
     TypeQuery &query, DWARFDIE die,
     llvm::function_ref<bool(DWARFDIE die)> callback) {
-  // Nothing to match from query
-  if (query.GetContextRef().size() <= 1)
----------------
labath wrote:

This wasn't correct because it wasn't checking the "ComilerContextKind" part of the query. It didn't matter because of the "second line of defense" (which is now gone).

https://github.com/llvm/llvm-project/pull/116989


More information about the lldb-commits mailing list