mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 10:58:11 +08:00
<rdar://problem/13925626>
Correctly handle the case of a ValueObjectVariable backed by a Vector llvm-svn: 182330
This commit is contained in:
@@ -342,6 +342,18 @@ Value::GetValueAsData (ExecutionContext *exe_ctx,
|
||||
default:
|
||||
error.SetErrorStringWithFormat("invalid value type %i", m_value_type);
|
||||
break;
|
||||
|
||||
case eValueTypeVector:
|
||||
if (m_context_type == eContextTypeClangType && ast_context)
|
||||
{
|
||||
ClangASTType ptr_type (ast_context, ClangASTContext::GetVoidPtrType(ast_context, false));
|
||||
uint64_t ptr_byte_size = ptr_type.GetClangTypeByteSize();
|
||||
data.SetAddressByteSize (ptr_byte_size);
|
||||
}
|
||||
else
|
||||
data.SetAddressByteSize(sizeof(void *));
|
||||
data.SetData(m_vector.bytes, m_vector.length, m_vector.byte_order);
|
||||
break;
|
||||
|
||||
case eValueTypeScalar:
|
||||
data.SetByteOrder (lldb::endian::InlHostByteOrder());
|
||||
|
||||
Reference in New Issue
Block a user