summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-07-01 11:09:15 +0000
committerPavel Labath <pavel@labath.sk>2019-07-01 11:09:15 +0000
commit0f73709cb7166c74c491a4dbdb32ec81c1990a3a (patch)
tree8270fe9fc3fbbe0260a5c87ca6fdefd7f0452e2a /lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp
parented13fef47741d0a8fcaefeedbe6dc47a8552b928 (diff)
downloadbcm5719-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.cpp4
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;
OpenPOWER on IntegriCloud