Skip to content

Commit 3e98d2b

Browse files
committed
[lldb] Fix windows build for #145293
1 parent 9186df9 commit 3e98d2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/tools/lldb-server/lldb-gdbserver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ void ConnectToRemote(MainLoop &mainloop,
218218
error.AsCString());
219219
exit(-1);
220220
}
221-
connection_up = std::unique_ptr<Connection>(new ConnectionFileDescriptor(
222-
new TCPSocket(sockfd, /*should_close=*/true)));
221+
connection_up = std::make_unique<ConnectionFileDescriptor>(
222+
std::make_unique<TCPSocket>(sockfd, /*should_close=*/true));
223223
#else
224224
url = llvm::formatv("fd://{0}", connection_fd).str();
225225

0 commit comments

Comments
 (0)