Skip to content

Commit 98c279a

Browse files
committed
[lldb] Add missing optional conversion
1 parent 1cfca53 commit 98c279a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lldb/source/Plugins/ABI/X86/ABIWindows_x86_64.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,10 @@ ValueObjectSP ABIWindows_x86_64::GetReturnValueObjectImpl(
675675
uint32_t count;
676676

677677
CompilerType field_compiler_type = aggregate_compiler_types[idx];
678-
uint32_t field_byte_width = (uint32_t) (*field_compiler_type.GetByteSize(&thread));
678+
uint32_t field_byte_width =
679+
(uint32_t)(llvm::expectedToOptional(
680+
field_compiler_type.GetByteSize(&thread))
681+
.value_or(0));
679682
uint32_t field_byte_offset = aggregate_field_offsets[idx];
680683

681684
// this is unlikely w/o the overall size being greater than 8 bytes

0 commit comments

Comments
 (0)