llvmbot wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lldb

Author: Matej Košík (sedymrak)

<details>
<summary>Changes</summary>

An existing code can be further simplified.

---
Full diff: https://github.com/llvm/llvm-project/pull/169624.diff


1 Files Affected:

- (modified) lldb/source/Utility/RegisterValue.cpp (+1-2) 


``````````diff
diff --git a/lldb/source/Utility/RegisterValue.cpp 
b/lldb/source/Utility/RegisterValue.cpp
index c28c9e2d4d106..f555529d314e5 100644
--- a/lldb/source/Utility/RegisterValue.cpp
+++ b/lldb/source/Utility/RegisterValue.cpp
@@ -197,8 +197,7 @@ Status RegisterValue::SetValueFromData(const RegisterInfo 
&reg_info,
     else {
       std::vector<uint8_t> native_endian_src(src_len, 0);
       src.ExtractBytes(src_offset, src_len,
-                       llvm::sys::IsLittleEndianHost ? eByteOrderLittle
-                                                     : eByteOrderBig,
+                       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
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to