We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cfca53 commit 98c279aCopy full SHA for 98c279a
lldb/source/Plugins/ABI/X86/ABIWindows_x86_64.cpp
@@ -675,7 +675,10 @@ ValueObjectSP ABIWindows_x86_64::GetReturnValueObjectImpl(
675
uint32_t count;
676
677
CompilerType field_compiler_type = aggregate_compiler_types[idx];
678
- uint32_t field_byte_width = (uint32_t) (*field_compiler_type.GetByteSize(&thread));
+ uint32_t field_byte_width =
679
+ (uint32_t)(llvm::expectedToOptional(
680
+ field_compiler_type.GetByteSize(&thread))
681
+ .value_or(0));
682
uint32_t field_byte_offset = aggregate_field_offsets[idx];
683
684
// this is unlikely w/o the overall size being greater than 8 bytes
0 commit comments