summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ValueObject.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-01-08 22:26:47 +0000
committerGreg Clayton <gclayton@apple.com>2011-01-08 22:26:47 +0000
commit97a4371c967976ddd2f420a31187e5fd63073202 (patch)
tree0306d3b8d0c760c8eb9e7f8b78ee97b38b949158 /lldb/source/Core/ValueObject.cpp
parent7d6433ae76802243e5655cba8fcd0af4e3fc42ad (diff)
downloadbcm5719-llvm-97a4371c967976ddd2f420a31187e5fd63073202.tar.gz
bcm5719-llvm-97a4371c967976ddd2f420a31187e5fd63073202.zip
Make sure we don't assert if we have a child with zero byte size. Also
we now say that "void *" value objects don't have children. llvm-svn: 123092
Diffstat (limited to 'lldb/source/Core/ValueObject.cpp')
-rw-r--r--lldb/source/Core/ValueObject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp
index 2cf4f226347..6754b76bff3 100644
--- a/lldb/source/Core/ValueObject.cpp
+++ b/lldb/source/Core/ValueObject.cpp
@@ -383,7 +383,7 @@ ValueObject::CreateChildAtIndex (uint32_t idx, bool synthetic_array_member, int3
child_bitfield_bit_size,
child_bitfield_bit_offset,
child_is_base_class);
- if (child_clang_type)
+ if (child_clang_type && child_byte_size)
{
if (synthetic_index)
child_byte_offset += child_byte_size * synthetic_index;
@@ -1245,7 +1245,7 @@ ValueObject::Dereference (Error &error)
child_bitfield_bit_size,
child_bitfield_bit_offset,
child_is_base_class);
- if (child_clang_type)
+ if (child_clang_type && child_byte_offset)
{
ConstString child_name;
if (!child_name_str.empty())
OpenPOWER on IntegriCloud