diff --git a/lldb/include/lldb/Core/Opcode.h b/lldb/include/lldb/Core/Opcode.h index f680e0b91ab85..7bbd73d039f99 100644 --- a/lldb/include/lldb/Core/Opcode.h +++ b/lldb/include/lldb/Core/Opcode.h @@ -211,7 +211,7 @@ class Opcode { if (bytes != nullptr && length > 0) { m_type = type; m_data.inst.length = length; - assert(length < sizeof(m_data.inst.bytes)); + assert(length <= sizeof(m_data.inst.bytes)); memcpy(m_data.inst.bytes, bytes, length); m_byte_order = order; } else {