[Lldb-commits] [lldb] [lldb] simplify the code (PR #169624)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Nov 26 01:51:33 PST 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 cpp -- lldb/source/Utility/RegisterValue.cpp --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/Utility/RegisterValue.cpp b/lldb/source/Utility/RegisterValue.cpp
index f555529d3..4d762dc80 100644
--- a/lldb/source/Utility/RegisterValue.cpp
+++ b/lldb/source/Utility/RegisterValue.cpp
@@ -196,8 +196,7 @@ Status RegisterValue::SetValueFromData(const RegisterInfo ®_info,
SetUInt64(src.GetMaxU64(&src_offset, src_len));
else {
std::vector<uint8_t> native_endian_src(src_len, 0);
- src.ExtractBytes(src_offset, src_len,
- endian::InlHostByteOrder(),
+ src.ExtractBytes(src_offset, src_len, endian::InlHostByteOrder(),
native_endian_src.data());
llvm::APInt uint = llvm::APInt::getZero(src_len * 8);
llvm::LoadIntFromMemory(uint, native_endian_src.data(), src_len);
``````````
</details>
https://github.com/llvm/llvm-project/pull/169624
More information about the lldb-commits
mailing list