Skip to content

Commit c76c00f

Browse files
authored
[LLVM][Support] Fixed the compile error caused by llvm#73603 (llvm#75418)
This patch fixed the following compile error caused by llvm#73603. ``` llvm/lib/Support/raw_ostream.cpp: In static member function ‘static llvm::Expected<llvm::ListeningSocket> llvm::ListeningSocket::createUnix(llvm::StringRef, int)’: llvm/lib/Support/raw_ostream.cpp:1040:10: error: could not convert ‘ListenSocket’ from ‘llvm::ListeningSocket’ to ‘llvm::Expected<llvm::ListeningSocket>’ return ListenSocket; ^~~~~~~~~~~~ ```
1 parent e0ca12a commit c76c00f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Support/raw_ostream.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,8 +1036,7 @@ Expected<ListeningSocket> ListeningSocket::createUnix(StringRef SocketPath,
10361036
#else
10371037
UnixSocket = MaybeWinsocket;
10381038
#endif // _WIN32
1039-
ListeningSocket ListenSocket(UnixSocket, SocketPath);
1040-
return ListenSocket;
1039+
return ListeningSocket{UnixSocket, SocketPath};
10411040
}
10421041

10431042
Expected<std::unique_ptr<raw_socket_stream>> ListeningSocket::accept() {

0 commit comments

Comments
 (0)