Skip to content

Commit 28174fa

Browse files
JDevliegherelabath
andauthored
Store instead of exchange
Co-authored-by: Pavel Labath <[email protected]>
1 parent 99b70b3 commit 28174fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Utility/Log.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,6 @@ void TeeLogHandler::Emit(llvm::StringRef message) {
465465
m_second_log_handler->Emit(message);
466466
}
467467

468-
void lldb_private::SetLLDBErrorLog(Log *log) { g_error_log.exchange(log); }
468+
void lldb_private::SetLLDBErrorLog(Log *log) { g_error_log.store(log); }
469469

470470
Log *lldb_private::GetLLDBErrorLog() { return g_error_log; }

0 commit comments

Comments
 (0)