Skip to content

Commit 0c3d07e

Browse files
committed
Add comment
1 parent f83e29d commit 0c3d07e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lldb/source/Symbol/CompilerType.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,8 +1105,11 @@ bool CompilerType::GetValueAsScalar(const lldb_private::DataExtractor &data,
11051105
return false;
11061106

11071107
std::optional<uint64_t> byte_size = GetByteSize(exe_scope);
1108+
// A bit or byte size of 0 is not a bug, but it doesn't make sense to read a
1109+
// scalar of zero size.
11081110
if (!byte_size || *byte_size == 0)
11091111
return false;
1112+
11101113
lldb::offset_t offset = data_byte_offset;
11111114
switch (encoding) {
11121115
case lldb::eEncodingInvalid:

0 commit comments

Comments
 (0)