From 4f5f39ac4ca50bae844a70b2d281afd056c6137a Mon Sep 17 00:00:00 2001 From: Ashok Thirumurthi Date: Thu, 28 Mar 2013 17:27:40 +0000 Subject: Introduces extended register sets whose availability can vary with the target processor. - Includes a stub for AVX support in the x86-64 register context and a failing test for register sets that are unavailable. Thanks to Greg Clayton for his review feedback. llvm-svn: 178252 --- lldb/source/Core/RegisterValue.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lldb/source/Core/RegisterValue.cpp') diff --git a/lldb/source/Core/RegisterValue.cpp b/lldb/source/Core/RegisterValue.cpp index ab24567ba12..16559e2b478 100644 --- a/lldb/source/Core/RegisterValue.cpp +++ b/lldb/source/Core/RegisterValue.cpp @@ -981,12 +981,11 @@ RegisterValue::SetBytes (const void *bytes, size_t length, lldb::ByteOrder byte_ // m_data.buffer.bytes, or make it something that is allocated on // the heap. Since the data buffer is in a union, we can't make it // a collection class like SmallVector... - assert (length <= sizeof (m_data.buffer.bytes)); if (bytes && length > 0) { + assert (length <= sizeof (m_data.buffer.bytes) && "Storing too many bytes in a RegisterValue."); m_type = eTypeBytes; m_data.buffer.length = length; - assert (length <= sizeof (m_data.buffer.bytes)); memcpy (m_data.buffer.bytes, bytes, length); m_data.buffer.byte_order = byte_order; } -- cgit v1.2.3