summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Target/Thread.cpp')
-rw-r--r--lldb/source/Target/Thread.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lldb/source/Target/Thread.cpp b/lldb/source/Target/Thread.cpp
index 21225b9c8a5..ed9b4092e84 100644
--- a/lldb/source/Target/Thread.cpp
+++ b/lldb/source/Target/Thread.cpp
@@ -1600,15 +1600,13 @@ void Thread::CalculateExecutionContext(ExecutionContext &exe_ctx) {
}
StackFrameListSP Thread::GetStackFrameList() {
- StackFrameListSP frame_list_sp;
std::lock_guard<std::recursive_mutex> guard(m_frame_mutex);
if (!m_curr_frames_sp)
- frame_list_sp =
+ m_curr_frames_sp =
std::make_shared<StackFrameList>(*this, m_prev_frames_sp, true);
- frame_list_sp = m_curr_frames_sp;
- return frame_list_sp;
+ return m_curr_frames_sp;
}
void Thread::ClearStackFrames() {
OpenPOWER on IntegriCloud