[all-commits] [llvm/llvm-project] 7493d4: [lldb][DataFormatter] unordered_map: account for n...

Michael Buch via All-commits all-commits at lists.llvm.org
Fri Oct 13 08:44:25 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7493d45408c3469568ff4b23ae71c435384a830d
      https://github.com/llvm/llvm-project/commit/7493d45408c3469568ff4b23ae71c435384a830d
  Author: Michael Buch <michaelbuch12 at gmail.com>
  Date:   2023-10-13 (Fri, 13 Oct 2023)

  Changed paths:
    M lldb/source/Plugins/Language/CPlusPlus/LibCxxUnorderedMap.cpp

  Log Message:
  -----------
  [lldb][DataFormatter] unordered_map: account for new libc++ __hash_node layout (#68574)

Since D101206 (`ba79fb2e1ff7130cde02fbbd325f0f96f8a522ca`) the `__hash_node::__value_`
member is wrapped in an anonymous union. `ValueObject::GetChildMemberWithName` doesn't see
through the union.

This patch accounts for this possible new layout by getting a handle to
the union before doing the by-name `__value_` lookup.




More information about the All-commits mailing list