[Lldb-commits] [lldb] r176740 - Fix assert in RegisterValue::SetBytes if we're trying to

Jason Molenda jmolenda at apple.com
Fri Mar 8 16:04:17 PST 2013


Author: jmolenda
Date: Fri Mar  8 18:04:17 2013
New Revision: 176740

URL: http://llvm.org/viewvc/llvm-project?rev=176740&view=rev
Log:
Fix assert in RegisterValue::SetBytes if we're trying to
write a 32-byte value into a 32-byte ymm vector reg - that 
is allowed.
<rdar://problem/13350587> 

Modified:
    lldb/trunk/source/Core/RegisterValue.cpp

Modified: lldb/trunk/source/Core/RegisterValue.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/RegisterValue.cpp?rev=176740&r1=176739&r2=176740&view=diff
==============================================================================
--- lldb/trunk/source/Core/RegisterValue.cpp (original)
+++ lldb/trunk/source/Core/RegisterValue.cpp Fri Mar  8 18:04:17 2013
@@ -986,7 +986,7 @@ RegisterValue::SetBytes (const void *byt
     {
         m_type = eTypeBytes;
         m_data.buffer.length = length;
-        assert (length < sizeof (m_data.buffer.bytes));
+        assert (length <= sizeof (m_data.buffer.bytes));
         memcpy (m_data.buffer.bytes, bytes, length);
         m_data.buffer.byte_order = byte_order;
     }





More information about the lldb-commits mailing list