[Lldb-commits] [lldb] [lldb] Fix compile error. (PR #130091)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Mar 6 04:30:20 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Adrian Kuegel (akuegel)
<details>
<summary>Changes</summary>
Followup to https://github.com/llvm/llvm-project/commit/878a64f94a264ea4b564d6063614ddb0b5da3f6c
---
Full diff: https://github.com/llvm/llvm-project/pull/130091.diff
1 Files Affected:
- (modified) lldb/source/Plugins/ABI/ARC/ABISysV_arc.cpp (+6-2)
``````````diff
diff --git a/lldb/source/Plugins/ABI/ARC/ABISysV_arc.cpp b/lldb/source/Plugins/ABI/ARC/ABISysV_arc.cpp
index a38396dc14635..21bc0f28db0b9 100644
--- a/lldb/source/Plugins/ABI/ARC/ABISysV_arc.cpp
+++ b/lldb/source/Plugins/ABI/ARC/ABISysV_arc.cpp
@@ -459,7 +459,9 @@ ABISysV_arc::GetReturnValueObjectSimple(Thread &thread,
const uint32_t type_flags = compiler_type.GetTypeInfo();
// Integer return type.
if (type_flags & eTypeIsInteger) {
- const size_t byte_size = compiler_type.GetByteSize(&thread).value_or(0);
+ const size_t byte_size =
+ llvm::expectedToOptional(compiler_type.GetByteSize(&thread))
+ .value_or(0);
auto raw_value = ReadRawValue(reg_ctx, byte_size);
const bool is_signed = (type_flags & eTypeIsSigned) != 0;
@@ -483,7 +485,9 @@ ABISysV_arc::GetReturnValueObjectSimple(Thread &thread,
if (compiler_type.IsFloatingPointType(float_count, is_complex) &&
1 == float_count && !is_complex) {
- const size_t byte_size = compiler_type.GetByteSize(&thread).value_or(0);
+ const size_t byte_size =
+ llvm::expectedToOptional(compiler_type.GetByteSize(&thread))
+ .value_or(0);
auto raw_value = ReadRawValue(reg_ctx, byte_size);
if (!SetSizedFloat(value.GetScalar(), raw_value, byte_size))
``````````
</details>
https://github.com/llvm/llvm-project/pull/130091
More information about the lldb-commits
mailing list