diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-08-07 16:09:35 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-08-07 16:09:35 +0000 |
commit | af0c828a1ef2a85e8e98d97e8f72d985ed08fe6f (patch) | |
tree | 6e590b60ab5b837d8c3028115565a1925dbbf174 /lldb/source/Target/ExecutionContext.cpp | |
parent | 4d4eefda6c215f4b41aede55d50073c7a3bbeb64 (diff) | |
download | bcm5719-llvm-af0c828a1ef2a85e8e98d97e8f72d985ed08fe6f.tar.gz bcm5719-llvm-af0c828a1ef2a85e8e98d97e8f72d985ed08fe6f.zip |
[ExecutionContext] Return the target/process byte order.
Currently ExecutionContext::GetByteOrder() always returns the host byte
order. This seems like a simple mistake: the return keyword appears to
have been omitted by accident. This patch fixes that and adds a unit
test.
Bugreport: https://llvm.org/PR37950
Differential revision: https://reviews.llvm.org/D48704
llvm-svn: 368181
Diffstat (limited to 'lldb/source/Target/ExecutionContext.cpp')
-rw-r--r-- | lldb/source/Target/ExecutionContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Target/ExecutionContext.cpp b/lldb/source/Target/ExecutionContext.cpp index 77327372f88..a24a098eb30 100644 --- a/lldb/source/Target/ExecutionContext.cpp +++ b/lldb/source/Target/ExecutionContext.cpp @@ -183,9 +183,9 @@ uint32_t ExecutionContext::GetAddressByteSize() const { lldb::ByteOrder ExecutionContext::GetByteOrder() const { if (m_target_sp && m_target_sp->GetArchitecture().IsValid()) - m_target_sp->GetArchitecture().GetByteOrder(); + return m_target_sp->GetArchitecture().GetByteOrder(); if (m_process_sp) - m_process_sp->GetByteOrder(); + return m_process_sp->GetByteOrder(); return endian::InlHostByteOrder(); } |