diff options
| author | Greg Clayton <gclayton@apple.com> | 2012-12-06 02:33:54 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2012-12-06 02:33:54 +0000 |
| commit | 4ef877f5e9f99973d2e5c2cdc17a7652288ad944 (patch) | |
| tree | d17f6a955644ee19b331f59d0608ca6ef82725cc /lldb/source/Core/ValueObject.cpp | |
| parent | 16846051db89f4ae27dcd7019bdef3141d0f9c60 (diff) | |
| download | bcm5719-llvm-4ef877f5e9f99973d2e5c2cdc17a7652288ad944.tar.gz bcm5719-llvm-4ef877f5e9f99973d2e5c2cdc17a7652288ad944.zip | |
<rdar://problem/12560257>
Fixed zero sized arrays to work correctly. This will only happen once we get a clang that emits correct debug info for zero sized arrays. For now I have marked the TestStructTypes.py as an expected failure.
llvm-svn: 169465
Diffstat (limited to 'lldb/source/Core/ValueObject.cpp')
| -rw-r--r-- | lldb/source/Core/ValueObject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp index 336b25337e7..d8564b85de8 100644 --- a/lldb/source/Core/ValueObject.cpp +++ b/lldb/source/Core/ValueObject.cpp @@ -675,7 +675,7 @@ ValueObject::CreateChildAtIndex (uint32_t idx, bool synthetic_array_member, int3 child_bitfield_bit_offset, child_is_base_class, child_is_deref_of_parent); - if (child_clang_type && child_byte_size) + if (child_clang_type) { if (synthetic_index) child_byte_offset += child_byte_size * synthetic_index; @@ -1798,7 +1798,7 @@ ValueObject::IsPointerType () bool ValueObject::IsArrayType () { - return ClangASTContext::IsArrayType (GetClangType()); + return ClangASTContext::IsArrayType (GetClangType(), NULL, NULL, NULL); } bool |

