diff options
| author | Kazu Hirata <kazu@google.com> | 2021-12-24 23:17:53 -0800 |
|---|---|---|
| committer | Kazu Hirata <kazu@google.com> | 2021-12-24 23:17:54 -0800 |
| commit | 2d303e678152fddb88dea4199c8872223232b406 (patch) | |
| tree | 5bed869bc8eeb13da3e0c9ad45cad60b09bdb5e3 /lldb/source/Expression | |
| parent | 70912420bbc39e0cf486a933182d910bfd835063 (diff) | |
| download | llvm-2d303e678152fddb88dea4199c8872223232b406.tar.gz llvm-2d303e678152fddb88dea4199c8872223232b406.tar.bz2 llvm-2d303e678152fddb88dea4199c8872223232b406.zip | |
Remove redundant return and continue statements (NFC)
Identified with readability-redundant-control-flow.
Diffstat (limited to 'lldb/source/Expression')
| -rw-r--r-- | lldb/source/Expression/IRExecutionUnit.cpp | 2 | ||||
| -rw-r--r-- | lldb/source/Expression/IRMemoryMap.cpp | 4 |
2 files changed, 0 insertions, 6 deletions
diff --git a/lldb/source/Expression/IRExecutionUnit.cpp b/lldb/source/Expression/IRExecutionUnit.cpp index f2d22f7ed9cc..3c4a87c27e20 100644 --- a/lldb/source/Expression/IRExecutionUnit.cpp +++ b/lldb/source/Expression/IRExecutionUnit.cpp @@ -483,8 +483,6 @@ void IRExecutionUnit::GetRunnableInfo(Status &error, lldb::addr_t &func_addr, func_addr = m_function_load_addr; func_end = m_function_end_load_addr; - - return; } IRExecutionUnit::~IRExecutionUnit() { diff --git a/lldb/source/Expression/IRMemoryMap.cpp b/lldb/source/Expression/IRMemoryMap.cpp index 4ae2724d4dd8..9eee5cf5b9a2 100644 --- a/lldb/source/Expression/IRMemoryMap.cpp +++ b/lldb/source/Expression/IRMemoryMap.cpp @@ -609,7 +609,6 @@ void IRMemoryMap::WriteScalarToMemory(lldb::addr_t process_address, error.SetErrorToGenericError(); error.SetErrorString("Couldn't write scalar: its size was zero"); } - return; } void IRMemoryMap::WritePointerToMemory(lldb::addr_t process_address, @@ -757,7 +756,6 @@ void IRMemoryMap::ReadScalarFromMemory(Scalar &scalar, error.SetErrorToGenericError(); error.SetErrorString("Couldn't read scalar: its size was zero"); } - return; } void IRMemoryMap::ReadPointerFromMemory(lldb::addr_t *address, @@ -773,8 +771,6 @@ void IRMemoryMap::ReadPointerFromMemory(lldb::addr_t *address, return; *address = pointer_scalar.ULongLong(); - - return; } void IRMemoryMap::GetMemoryData(DataExtractor &extractor, |
