[all-commits] [llvm/llvm-project] 32946e: [lldb][Formatters] Fix weak reference count for st...

Michael Buch via All-commits all-commits at lists.llvm.org
Fri Jul 4 07:32:09 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 32946eb124e87a58a94b55ee0a64d1d2265fc58d
      https://github.com/llvm/llvm-project/commit/32946eb124e87a58a94b55ee0a64d1d2265fc58d
  Author: Michael Buch <michaelbuch12 at gmail.com>
  Date:   2025-07-04 (Fri, 04 Jul 2025)

  Changed paths:
    M lldb/source/Plugins/Language/CPlusPlus/LibCxx.cpp
    M lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/shared_ptr/TestDataFormatterLibcxxSharedPtr.py
    M lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/shared_ptr/main.cpp

  Log Message:
  -----------
  [lldb][Formatters] Fix weak reference count for std::shared_ptr/std::weak_ptr (#147033)

For the `__shared_owners_` we need to add `+1` to the count, but for
`__shared_weak_owners_` the value reflects the exact number of weak
references.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list