From 6ded39093e47ae4690638fe3d8106420909753c3 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Fri, 12 Dec 2014 18:59:49 +0000 Subject: [PATCH] Do not set the live address of a const result child if its parent has an invalid live address llvm-svn: 224142 --- lldb/source/Core/ValueObjectConstResultImpl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lldb/source/Core/ValueObjectConstResultImpl.cpp b/lldb/source/Core/ValueObjectConstResultImpl.cpp index d3e2758..6df8b5c 100644 --- a/lldb/source/Core/ValueObjectConstResultImpl.cpp +++ b/lldb/source/Core/ValueObjectConstResultImpl.cpp @@ -139,7 +139,8 @@ ValueObjectConstResultImpl::CreateChildAtIndex (size_t idx, bool synthetic_array child_bitfield_bit_offset, child_is_base_class, child_is_deref_of_parent); - valobj->m_impl.SetLiveAddress(m_live_address+child_byte_offset); + if (m_live_address != LLDB_INVALID_ADDRESS) + valobj->m_impl.SetLiveAddress(m_live_address+child_byte_offset); } return valobj; -- 2.7.4