================ @@ -460,3 +464,7 @@ void TeeLogHandler::Emit(llvm::StringRef message) { m_first_log_handler->Emit(message); m_second_log_handler->Emit(message); } + +void lldb_private::SetLLDBErrorLog(Log *log) { g_error_log.exchange(log); } ---------------- labath wrote:
```suggestion void lldb_private::SetLLDBErrorLog(Log *log) { g_error_log.store(log); } ``` exchange is of no use if you're not actually using the previous value. https://github.com/llvm/llvm-project/pull/111911 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits