[Lldb-commits] [lldb] [lldb][RISCV] Fix return value reading (PR #163931)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 23 04:14:04 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions h,cpp -- lldb/source/Plugins/ABI/RISCV/ABISysV_riscv.cpp lldb/source/Plugins/ABI/RISCV/ABISysV_riscv.h --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/source/Plugins/ABI/RISCV/ABISysV_riscv.cpp b/lldb/source/Plugins/ABI/RISCV/ABISysV_riscv.cpp
index a6c106775..cbc08b973 100644
--- a/lldb/source/Plugins/ABI/RISCV/ABISysV_riscv.cpp
+++ b/lldb/source/Plugins/ABI/RISCV/ABISysV_riscv.cpp
@@ -629,7 +629,8 @@ static DataExtractor CopyReturnValueToBuffer(ExecutionContext &exe_ctx,
// value is stored only in a0
a0_reg_value.GetData(a0_extractor);
// shrink data to the size of the return value
- return DataExtractor{a0_extractor, /*offset=*/0, byte_size};;
+ return DataExtractor{a0_extractor, /*offset=*/0, byte_size};
+ ;
}
// "Aggregates whose total size is no more than 2×XLEN bits
@@ -640,7 +641,8 @@ static DataExtractor CopyReturnValueToBuffer(ExecutionContext &exe_ctx,
a1_reg_value.GetData(a1_extractor);
a0_extractor.Append(a1_extractor);
// shrink data to the size of the return value
- return DataExtractor{a0_extractor, /*offset=*/0, byte_size};;
+ return DataExtractor{a0_extractor, /*offset=*/0, byte_size};
+ ;
}
// "Aggregates larger than 2×XLEN bits are passed by reference
``````````
</details>
https://github.com/llvm/llvm-project/pull/163931
More information about the lldb-commits
mailing list