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
diff --git a/lldb/source/Core/ValueObjectConstResultImpl.cpp b/lldb/source/Core/ValueObjectConstResultImpl.cpp
index fce844d..7355063 100644
--- a/lldb/source/Core/ValueObjectConstResultImpl.cpp
+++ b/lldb/source/Core/ValueObjectConstResultImpl.cpp
@@ -106,9 +106,8 @@
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;