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/Linux/NativeRegisterContextLinux_arm.cpp | |
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/Linux/NativeRegisterContextLinux_arm.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp index 3c6e0142de7..6204dbe453d 100644 --- a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp +++ b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp @@ -276,10 +276,6 @@ Status NativeRegisterContextLinux_arm::ReadAllRegisterValues( Status error; data_sp.reset(new DataBufferHeap(REG_CONTEXT_SIZE, 0)); - if (!data_sp) - return Status("failed to allocate DataBufferHeap instance of size %" PRIu64, - (uint64_t)REG_CONTEXT_SIZE); - error = ReadGPR(); if (error.Fail()) return error; |