[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 22:05:51 PDT 2018


ramana-nvr updated this revision to Diff 153258.
ramana-nvr added a comment.

Created the patch with more context.


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.153258.patch
Type: text/x-patch
Size: 584 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180628/7e91c2f7/attachment.bin>


More information about the lldb-commits mailing list