[Lldb-commits] [lldb] 8b456b4 - Revert "[lldb] Update SocketTestUtilities.cpp to use CloneableECError"
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 18 17:28:21 PDT 2024
Author: Adrian Prantl
Date: 2024-09-18T17:28:09-07:00
New Revision: 8b456b436f996b4c6dfee0abc704b9219d43f7d2
URL: https://github.com/llvm/llvm-project/commit/8b456b436f996b4c6dfee0abc704b9219d43f7d2
DIFF: https://github.com/llvm/llvm-project/commit/8b456b436f996b4c6dfee0abc704b9219d43f7d2.diff
LOG: Revert "[lldb] Update SocketTestUtilities.cpp to use CloneableECError"
This reverts commit 2383bc8216bd7d373bb48337199c09d40922adf2.
Added:
Modified:
lldb/unittests/TestingSupport/Host/SocketTestUtilities.cpp
Removed:
################################################################################
diff --git a/lldb/unittests/TestingSupport/Host/SocketTestUtilities.cpp b/lldb/unittests/TestingSupport/Host/SocketTestUtilities.cpp
index 86aed292ec01f8..86fb5b05ea8009 100644
--- a/lldb/unittests/TestingSupport/Host/SocketTestUtilities.cpp
+++ b/lldb/unittests/TestingSupport/Host/SocketTestUtilities.cpp
@@ -104,13 +104,14 @@ static bool CheckIPSupport(llvm::StringRef Proto, llvm::StringRef Addr) {
bool HasProtocolError = false;
handleAllErrors(
std::move(Err),
- [&](std::unique_ptr<CloneableECError> ECErr) {
+ [&](std::unique_ptr<llvm::ECError> ECErr) {
std::error_code ec = ECErr->convertToErrorCode();
if (ec ==
std::make_error_code(std::errc::address_family_not_supported) ||
ec == std::make_error_code(std::errc::address_not_available))
HasProtocolError = true;
- });
+ },
+ [](const llvm::ErrorInfoBase &) {});
if (HasProtocolError) {
GTEST_LOG_(WARNING)
<< llvm::formatv(
More information about the lldb-commits
mailing list