From c0b1af6878444f075a17d87f523bc6be3343db35 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Mon, 9 Mar 2020 14:10:41 +0100 Subject: [lldb] Return Unwinder& from Thread::GetUnwinder The function always returns a valid object. Let the return type reflect that, and remove some null checks. --- lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp') 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; } -- cgit v1.1