diff options
Diffstat (limited to 'lldb/source/Core/ValueObjectChild.cpp')
-rw-r--r-- | lldb/source/Core/ValueObjectChild.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lldb/source/Core/ValueObjectChild.cpp b/lldb/source/Core/ValueObjectChild.cpp index 06c311f22cf..c1e45e1f48d 100644 --- a/lldb/source/Core/ValueObjectChild.cpp +++ b/lldb/source/Core/ValueObjectChild.cpp @@ -109,14 +109,12 @@ ValueObjectChild::GetDisplayTypeName() return display_name; } -LazyBool +bool ValueObjectChild::CanUpdateWithInvalidExecutionContext () { - ValueObject* opinionated_ancestor = FollowParentChain([] (ValueObject* vo) -> bool { - return (vo->CanUpdateWithInvalidExecutionContext() == eLazyBoolCalculate); - }); - - return opinionated_ancestor ? opinionated_ancestor->CanUpdateWithInvalidExecutionContext() : this->ValueObject::CanUpdateWithInvalidExecutionContext(); + if (m_parent) + return m_parent->CanUpdateWithInvalidExecutionContext(); + return this->ValueObject::CanUpdateWithInvalidExecutionContext(); } bool |