diff --git a/lldb/source/Utility/RegisterValue.cpp b/lldb/source/Utility/RegisterValue.cpp index c28c9e2d4d106..4d762dc80e7f5 100644 --- a/lldb/source/Utility/RegisterValue.cpp +++ b/lldb/source/Utility/RegisterValue.cpp @@ -196,9 +196,7 @@ Status RegisterValue::SetValueFromData(const RegisterInfo ®_info, SetUInt64(src.GetMaxU64(&src_offset, src_len)); else { std::vector native_endian_src(src_len, 0); - src.ExtractBytes(src_offset, src_len, - llvm::sys::IsLittleEndianHost ? eByteOrderLittle - : eByteOrderBig, + 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);