[Lldb-commits] [lldb] [lldb] Remove Base::unique from NonNullSharedPtr (PR #169130)

Keith Smiley via lldb-commits lldb-commits at lists.llvm.org
Fri Nov 21 16:01:54 PST 2025


keith wrote:

this was fallout from https://github.com/llvm/llvm-project/pull/168624, ptal @JDevlieghere

here's the full error:

```
external/+llvm_configure+llvm-project/lldb/include/lldb/Utility/NonNullSharedPtr.h:57:15: error: no member named 'unique' in 'std::shared_ptr<lldb_private::SupportFile>'
   57 |   using Base::unique;
      |         ~~~~~~^
external/+llvm_configure+llvm-project/lldb/include/lldb/Symbol/LineEntry.h:140:18: note: in instantiation of template class 'lldb_private::NonNullSharedPtr<lldb_private::SupportFile>' requested here
  140 |   SupportFileNSP file_sp;
      |                  ^
external/+llvm_configure+llvm-project/lldb/source/Utility/FileSpecList.cpp:49:16: error: cannot initialize object parameter of type 'const std::shared_ptr<lldb_private::SupportFile>' with an expression of type 'const SupportFileNSP' (aka 'const NonNullSharedPtr<lldb_private::SupportFile>')
   49 |         return support_file->GetSpecOnly() == file_spec;
      |                ^~~~~~~~~~~~
```

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


More information about the lldb-commits mailing list