diff options
| author | Pavel Labath <pavel@labath.sk> | 2019-07-01 11:09:15 +0000 |
|---|---|---|
| committer | Pavel Labath <pavel@labath.sk> | 2019-07-01 11:09:15 +0000 |
| commit | 0f73709cb7166c74c491a4dbdb32ec81c1990a3a (patch) | |
| tree | 8270fe9fc3fbbe0260a5c87ca6fdefd7f0452e2a /lldb/source/Plugins/Process/NetBSD | |
| parent | ed13fef47741d0a8fcaefeedbe6dc47a8552b928 (diff) | |
| download | bcm5719-llvm-0f73709cb7166c74c491a4dbdb32ec81c1990a3a.tar.gz bcm5719-llvm-0f73709cb7166c74c491a4dbdb32ec81c1990a3a.zip | |
Remove null checks of results of new expressions
operator new doesn't return a null pointer, even if one turns off
exceptions (it calls std::terminate instead). Therefore, all of this is
dead code.
llvm-svn: 364744
Diffstat (limited to 'lldb/source/Plugins/Process/NetBSD')
| -rw-r--r-- | lldb/source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD_x86_64.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lldb/source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD_x86_64.cpp b/lldb/source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD_x86_64.cpp index da111989129..1a4d453e62d 100644 --- a/lldb/source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD_x86_64.cpp +++ b/lldb/source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD_x86_64.cpp @@ -572,13 +572,6 @@ Status NativeRegisterContextNetBSD_x86_64::ReadAllRegisterValues( Status error; data_sp.reset(new DataBufferHeap(REG_CONTEXT_SIZE, 0)); - if (!data_sp) { - error.SetErrorStringWithFormat( - "failed to allocate DataBufferHeap instance of size %" PRIu64, - REG_CONTEXT_SIZE); - return error; - } - error = ReadRegisterSet(GPRegSet); if (error.Fail()) return error; |

