File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
lldb/source/Plugins/ABI/ARC Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -459,7 +459,9 @@ ABISysV_arc::GetReturnValueObjectSimple(Thread &thread,
459
459
const uint32_t type_flags = compiler_type.GetTypeInfo ();
460
460
// Integer return type.
461
461
if (type_flags & eTypeIsInteger) {
462
- const size_t byte_size = compiler_type.GetByteSize (&thread).value_or (0 );
462
+ const size_t byte_size =
463
+ llvm::expectedToOptional (compiler_type.GetByteSize (&thread))
464
+ .value_or (0 );
463
465
auto raw_value = ReadRawValue (reg_ctx, byte_size);
464
466
465
467
const bool is_signed = (type_flags & eTypeIsSigned) != 0 ;
@@ -483,7 +485,9 @@ ABISysV_arc::GetReturnValueObjectSimple(Thread &thread,
483
485
484
486
if (compiler_type.IsFloatingPointType (float_count, is_complex) &&
485
487
1 == float_count && !is_complex) {
486
- const size_t byte_size = compiler_type.GetByteSize (&thread).value_or (0 );
488
+ const size_t byte_size =
489
+ llvm::expectedToOptional (compiler_type.GetByteSize (&thread))
490
+ .value_or (0 );
487
491
auto raw_value = ReadRawValue (reg_ctx, byte_size);
488
492
489
493
if (!SetSizedFloat (value.GetScalar (), raw_value, byte_size))
You can’t perform that action at this time.
0 commit comments