Set the live address on child const results in a way that is more maintainable for...
authorEnrico Granata <egranata@apple.com>
Wed, 22 Jul 2015 21:39:15 +0000 (21:39 +0000)
committerEnrico Granata <egranata@apple.com>
Wed, 22 Jul 2015 21:39:15 +0000 (21:39 +0000)
llvm-svn: 242944

lldb/source/Core/ValueObjectConstResultImpl.cpp

index fce844d..7355063 100644 (file)
@@ -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;