Skip to content

Commit 2383bc8

Browse files
committed
[lldb] Update SocketTestUtilities.cpp to use CloneableECError
1 parent 775de20 commit 2383bc8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lldb/unittests/TestingSupport/Host/SocketTestUtilities.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,13 @@ static bool CheckIPSupport(llvm::StringRef Proto, llvm::StringRef Addr) {
104104
bool HasProtocolError = false;
105105
handleAllErrors(
106106
std::move(Err),
107-
[&](std::unique_ptr<llvm::ECError> ECErr) {
107+
[&](std::unique_ptr<CloneableECError> ECErr) {
108108
std::error_code ec = ECErr->convertToErrorCode();
109109
if (ec ==
110110
std::make_error_code(std::errc::address_family_not_supported) ||
111111
ec == std::make_error_code(std::errc::address_not_available))
112112
HasProtocolError = true;
113-
},
114-
[](const llvm::ErrorInfoBase &) {});
113+
});
115114
if (HasProtocolError) {
116115
GTEST_LOG_(WARNING)
117116
<< llvm::formatv(

0 commit comments

Comments
 (0)