Skip to content

Commit 0e6da64

Browse files
committed
[LLDB] Use non synthetic value for MSVC smart ptr check
1 parent 9a805ba commit 0e6da64

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lldb/source/Plugins/Language/CPlusPlus/MsvcStlSmartPointer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
using namespace lldb;
1616

1717
bool lldb_private::formatters::IsMsvcStlSmartPointer(ValueObject &valobj) {
18-
return valobj.GetChildMemberWithName("_Ptr") != nullptr;
18+
ValueObjectSP valobj_sp = valobj.GetNonSyntheticValue();
19+
return valobj_sp->GetChildMemberWithName("_Ptr") != nullptr;
1920
}
2021

2122
bool lldb_private::formatters::MsvcStlSmartPointerSummaryProvider(

0 commit comments

Comments
 (0)