[Lldb-commits] [lldb] 3e98d2b - [lldb] Fix windows build for #145293
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Tue Jun 24 06:26:33 PDT 2025
Author: Pavel Labath
Date: 2025-06-24T15:25:10+02:00
New Revision: 3e98d2b0311e0ccc213a28324d723bf93fe0e5b3
URL: https://github.com/llvm/llvm-project/commit/3e98d2b0311e0ccc213a28324d723bf93fe0e5b3
DIFF: https://github.com/llvm/llvm-project/commit/3e98d2b0311e0ccc213a28324d723bf93fe0e5b3.diff
LOG: [lldb] Fix windows build for #145293
Added:
Modified:
lldb/tools/lldb-server/lldb-gdbserver.cpp
Removed:
################################################################################
diff --git a/lldb/tools/lldb-server/lldb-gdbserver.cpp b/lldb/tools/lldb-server/lldb-gdbserver.cpp
index 843354147f2da..c4c321067e920 100644
--- a/lldb/tools/lldb-server/lldb-gdbserver.cpp
+++ b/lldb/tools/lldb-server/lldb-gdbserver.cpp
@@ -218,8 +218,8 @@ void ConnectToRemote(MainLoop &mainloop,
error.AsCString());
exit(-1);
}
- connection_up = std::unique_ptr<Connection>(new ConnectionFileDescriptor(
- new TCPSocket(sockfd, /*should_close=*/true)));
+ connection_up = std::make_unique<ConnectionFileDescriptor>(
+ std::make_unique<TCPSocket>(sockfd, /*should_close=*/true));
#else
url = llvm::formatv("fd://{0}", connection_fd).str();
More information about the lldb-commits
mailing list