Files
xtchain/patches/llvm/21.1.6/01-Fix-WaitForSingleObject-cast-on-MinGW.patch
Aiken Harris 65714912c2
All checks were successful
Builds / XTchain (full, linux) (push) Successful in 2h20m1s
Builds / XTchain (full, windows) (push) Successful in 2h21m28s
Builds / XTchain (minimal, linux) (push) Successful in 3m54s
Builds / XTchain (minimal, windows) (push) Successful in 3m41s
Update toolchain component
2025-11-22 23:26:58 +01:00

14 lines
630 B
Diff

diff --git a/lldb/source/Host/windows/MainLoopWindows.cpp b/lldb/source/Host/windows/MainLoopWindows.cpp
index c0b10797e..e971b8cfd 100644
--- a/lldb/source/Host/windows/MainLoopWindows.cpp
+++ b/lldb/source/Host/windows/MainLoopWindows.cpp
@@ -58,7 +58,7 @@ public:
// Keep trying to cancel ReadFile() until the thread exits.
do {
CancelIoEx(m_handle, /*lpOverlapped=*/NULL);
- } while (WaitForSingleObject(m_monitor_thread.native_handle(), 1) ==
+ } while (WaitForSingleObject((HANDLE)m_monitor_thread.native_handle(), 1) ==
WAIT_TIMEOUT);
m_monitor_thread.join();
}