diff options
Diffstat (limited to 'lldb/source/Core/ValueObjectChild.cpp')
-rw-r--r-- | lldb/source/Core/ValueObjectChild.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/source/Core/ValueObjectChild.cpp b/lldb/source/Core/ValueObjectChild.cpp index 8aeb005512a..cf69ea5da68 100644 --- a/lldb/source/Core/ValueObjectChild.cpp +++ b/lldb/source/Core/ValueObjectChild.cpp @@ -229,5 +229,8 @@ ValueObjectChild::UpdateValue () bool ValueObjectChild::IsInScope () { - return m_parent->IsInScope (); + ValueObject* root(GetRoot()); + if (root) + return root->IsInScope (); + return false; } |