From ed69e30d68c57ed7b215ac505447f80ee6982007 Mon Sep 17 00:00:00 2001 From: Hafiz Abid Qadeer Date: Wed, 25 Feb 2015 16:01:12 +0000 Subject: [PATCH] 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 --- lldb/source/Target/ExecutionContext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb/source/Target/ExecutionContext.cpp b/lldb/source/Target/ExecutionContext.cpp index 750af92d759d..03714728559c 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 *); }