summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Thread.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-02-12 01:04:57 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-02-12 01:04:57 +0000
commit6e31f4758f76f0d6d5d0d0aa166a9f8fe96af5c0 (patch)
tree605dcdb1de45c0dfbdcd415b88cecf1a0c087f1c /lldb/source/Target/Thread.cpp
parent73bf6d5b350067a6ba4e45098fcedf23fa1cb4bc (diff)
downloadbcm5719-llvm-6e31f4758f76f0d6d5d0d0aa166a9f8fe96af5c0.tar.gz
bcm5719-llvm-6e31f4758f76f0d6d5d0d0aa166a9f8fe96af5c0.zip
[Thread] Update the correct variable
The new shared pointer was assigning to the temporary instead of the member (m_curr_frames_sp). llvm-svn: 353783
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