summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ValueObjectConstResultImpl.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2014-12-12 18:59:49 +0000
committerEnrico Granata <egranata@apple.com>2014-12-12 18:59:49 +0000
commit6ded39093e47ae4690638fe3d8106420909753c3 (patch)
treec03f8d5b96745f9e464062a83b2a7ce5d0e614f5 /lldb/source/Core/ValueObjectConstResultImpl.cpp
parent5135227549b4efa4f021f24ecadc3d88b986f8c8 (diff)
downloadbcm5719-llvm-6ded39093e47ae4690638fe3d8106420909753c3.tar.gz
bcm5719-llvm-6ded39093e47ae4690638fe3d8106420909753c3.zip
Do not set the live address of a const result child if its parent has an invalid live address
llvm-svn: 224142
Diffstat (limited to 'lldb/source/Core/ValueObjectConstResultImpl.cpp')
-rw-r--r--lldb/source/Core/ValueObjectConstResultImpl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Core/ValueObjectConstResultImpl.cpp b/lldb/source/Core/ValueObjectConstResultImpl.cpp
index d3e27588350..6df8b5c4751 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;
OpenPOWER on IntegriCloud