================
@@ -5970,22 +6044,26 @@ void
Process::ClearPreResumeAction(PreResumeActionCallback callback, void *baton
}
ProcessRunLock &Process::GetRunLock() {
- if (Process::CurrentThreadIsPrivateStateThread())
- return m_private_run_lock;
- return m_public_run_lock;
+ if (Process::CurrentThreadPosesAsPrivateStateThread())
+ return m_current_private_state_thread->GetRunLock();
+ else
+ return m_current_private_state_thread->GetRunLock();
----------------
jimingham wrote:
TTTT, I don't understand this part of the llvm coding conventions. The logical
structure is "if A return X else return Y". I've never understood why "if A
return X; return Y" is a clearer way to state this. But I still comply.
https://github.com/llvm/llvm-project/pull/179799
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits