aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2020-03-09 14:10:41 +0100
committerPavel Labath <pavel@labath.sk>2020-03-09 14:13:22 +0100
commitc0b1af6878444f075a17d87f523bc6be3343db35 (patch)
tree11c9b19c64b0cfe82220bd59fd6cbd8d1b544919 /lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp
parent6ba0a4ec3bbfe71050b7b5c87f46820f3500e211 (diff)
downloadllvm-c0b1af6878444f075a17d87f523bc6be3343db35.zip
llvm-c0b1af6878444f075a17d87f523bc6be3343db35.tar.gz
llvm-c0b1af6878444f075a17d87f523bc6be3343db35.tar.bz2
[lldb] Return Unwinder& from Thread::GetUnwinder
The function always returns a valid object. Let the return type reflect that, and remove some null checks.
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp
index 7615ae2..6deabf8 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp
@@ -311,9 +311,7 @@ ThreadGDBRemote::CreateRegisterContextForFrame(StackFrame *frame) {
read_all_registers_at_once, write_all_registers_at_once);
}
} else {
- Unwind *unwinder = GetUnwinder();
- if (unwinder != nullptr)
- reg_ctx_sp = unwinder->CreateRegisterContextForFrame(frame);
+ reg_ctx_sp = GetUnwinder().CreateRegisterContextForFrame(frame);
}
return reg_ctx_sp;
}