[Lldb-commits] [PATCH] D48704: [LLDB] Fix for "Bug 37950: ExecutionContext::GetByteOrder() always returns endian::InlHostByteOrder()"

Venkata Ramanaiah via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Jun 27 21:56:22 PDT 2018


ramana-nvr created this revision.
ramana-nvr added reviewers: davide, lldb-commits.
ramana-nvr added a project: LLDB.

https://reviews.llvm.org/D48704

Files:
  source/Target/ExecutionContext.cpp


Index: source/Target/ExecutionContext.cpp
===================================================================
--- source/Target/ExecutionContext.cpp
+++ source/Target/ExecutionContext.cpp
@@ -188,9 +188,9 @@
 
 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();
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48704.153254.patch
Type: text/x-patch
Size: 584 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180628/73924032/attachment.bin>


More information about the lldb-commits mailing list