[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:
parent
73bf6d5b35
commit
6e31f4758f
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue