[Lldb-commits] [lldb] [lldb][test] Fix unordered-map test (PR #156033)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 12 03:17:12 PDT 2025
================
@@ -113,10 +113,10 @@ CompilerType lldb_private::formatters::LibcxxStdUnorderedMapSyntheticFrontEnd::
// wraps a std::pair. Peel away the internal wrapper type - whose structure is
// of no value to users, to expose the std::pair. This matches the structure
// returned by the std::map synthetic provider.
- if (isUnorderedMap(m_backend.GetCompilerType()
- .GetNonReferenceType()
- .GetCanonicalType()
- .GetTypeName())) {
+ CompilerType backend_type = m_backend.GetCompilerType();
+ if (backend_type.IsPointerOrReferenceType())
+ backend_type = backend_type.GetPointeeType();
----------------
Michael137 wrote:
```suggestion
backend_type = backend_type.GetPointeeType();
```
https://github.com/llvm/llvm-project/pull/156033
More information about the lldb-commits
mailing list