[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
This commit is contained in:
Jonas Devlieghere 2019-02-12 01:04:57 +00:00
parent 73bf6d5b35
commit 6e31f4758f
1 changed files with 2 additions and 4 deletions

View File

@ -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() {