================
@@ -527,7 +527,7 @@ void DebugNamesDWARFIndex::GetTypesWithQuery(
   ConstString name = query.GetTypeBasename();
   std::vector<lldb_private::CompilerContext> query_context =
       query.GetContextRef();
-  if (query_context.size() <= 1)
+  if (query_context.size() <= 1 && !query.GetExactMatch())
----------------
Michael137 wrote:

Nit (possibly for a separate PR if you prefer): could we change this to `== 1`? 
Would we ever get an empty context here? That feels like an invalid query. 
`GetTypes` already unconditionally accesses the zeroth element, which makes me 
think we're missing a check/assert for an empty context somewhere

https://github.com/llvm/llvm-project/pull/118465
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to