Index: lldb/source/Core/ValueObjectChild.cpp =================================================================== --- lldb/source/Core/ValueObjectChild.cpp +++ lldb/source/Core/ValueObjectChild.cpp @@ -170,6 +170,8 @@ if (bitfield_end > *type_bit_size) { uint64_t overhang_bytes = (bitfield_end - *type_bit_size + 7) / 8; + if (overhang_bytes > m_bitfield_bit_offset / 8) + overhang_bytes = m_bitfield_bit_offset / 8; m_byte_offset += overhang_bytes; m_bitfield_bit_offset -= overhang_bytes * 8; }