[Lldb-commits] [lldb] [LLDB] Use non synthetic value for MSVC smart ptr check (PR #148176)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Fri Jul 11 03:04:45 PDT 2025
================
@@ -15,7 +15,8 @@
using namespace lldb;
bool lldb_private::formatters::IsMsvcStlSmartPointer(ValueObject &valobj) {
- return valobj.GetChildMemberWithName("_Ptr") != nullptr;
+ ValueObjectSP valobj_sp = valobj.GetNonSyntheticValue();
+ return valobj_sp->GetChildMemberWithName("_Ptr") != nullptr;
----------------
Michael137 wrote:
```suggestion
if (auto valobj_sp = valobj.GetNonSyntheticValue())
return valobj_sp->GetChildMemberWithName("_Ptr") != nullptr;
return false;
```
https://github.com/llvm/llvm-project/pull/148176
More information about the lldb-commits
mailing list