diff options
author | Enrico Granata <egranata@apple.com> | 2015-07-22 21:39:15 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2015-07-22 21:39:15 +0000 |
commit | 1b3b2a39443e7c531348338eb02780a36a834d77 (patch) | |
tree | 93ce65041665182ad3802ac087b06527045a8ef2 /lldb/source/Core/ValueObjectConstResultImpl.cpp | |
parent | 483d4ed2120c1f98b62910a4cc83a800e79a8a9d (diff) | |
download | bcm5719-llvm-1b3b2a39443e7c531348338eb02780a36a834d77.tar.gz bcm5719-llvm-1b3b2a39443e7c531348338eb02780a36a834d77.zip |
Set the live address on child const results in a way that is more maintainable for sustained merges with our internal branches
llvm-svn: 242944
Diffstat (limited to 'lldb/source/Core/ValueObjectConstResultImpl.cpp')
-rw-r--r-- | lldb/source/Core/ValueObjectConstResultImpl.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lldb/source/Core/ValueObjectConstResultImpl.cpp b/lldb/source/Core/ValueObjectConstResultImpl.cpp index fce844dc20f..7355063bb6f 100644 --- a/lldb/source/Core/ValueObjectConstResultImpl.cpp +++ b/lldb/source/Core/ValueObjectConstResultImpl.cpp @@ -106,9 +106,8 @@ ValueObjectConstResultImpl::CreateChildAtIndex (size_t idx, bool synthetic_array child_bitfield_bit_size, child_bitfield_bit_offset, child_is_base_class, - child_is_deref_of_parent); - if (m_live_address != LLDB_INVALID_ADDRESS) - valobj->m_impl.SetLiveAddress(m_live_address+child_byte_offset); + child_is_deref_of_parent, + m_live_address == LLDB_INVALID_ADDRESS ? m_live_address : m_live_address+child_byte_offset); } return valobj; |