summaryrefslogtreecommitdiffstats
path: root/lldb/source
diff options
context:
space:
mode:
authorHafiz Abid Qadeer <hafiz_abid@mentor.com>2015-02-25 16:01:12 +0000
committerHafiz Abid Qadeer <hafiz_abid@mentor.com>2015-02-25 16:01:12 +0000
commited69e30d68c57ed7b215ac505447f80ee6982007 (patch)
tree3a7293feb5762c58b6260f42b2cd500771658833 /lldb/source
parent5c62af5bb14c641baddab0b225eba1282673ea29 (diff)
downloadbcm5719-llvm-ed69e30d68c57ed7b215ac505447f80ee6982007.tar.gz
bcm5719-llvm-ed69e30d68c57ed7b215ac505447f80ee6982007.zip
Add missing "return" statements.
ExecutionContext::GetAddressByteSize() was calling GettAddressByteSize () on Target and Process class but was ignoring the return type. I have added the missing return. No regression in the test suite. Committed as obvious. llvm-svn: 230502
Diffstat (limited to 'lldb/source')
-rw-r--r--lldb/source/Target/ExecutionContext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Target/ExecutionContext.cpp b/lldb/source/Target/ExecutionContext.cpp
index 750af92d759..03714728559 100644
--- a/lldb/source/Target/ExecutionContext.cpp
+++ b/lldb/source/Target/ExecutionContext.cpp
@@ -249,9 +249,9 @@ uint32_t
ExecutionContext::GetAddressByteSize() const
{
if (m_target_sp && m_target_sp->GetArchitecture().IsValid())
- m_target_sp->GetArchitecture().GetAddressByteSize();
+ return m_target_sp->GetArchitecture().GetAddressByteSize();
if (m_process_sp)
- m_process_sp->GetAddressByteSize();
+ return m_process_sp->GetAddressByteSize();
return sizeof(void *);
}
OpenPOWER on IntegriCloud