Files
xtchain/patches/llvm/21.1.5/01-Fix-WaitForSingleObject-cast-on-MinGW.patch
Rafal Kupiec 9634d5e6cf
Some checks failed
Builds / XTchain (full, windows) (push) Failing after 2h12m0s
Builds / XTchain (minimal, linux) (push) Successful in 2m12s
Builds / XTchain (full, linux) (push) Successful in 2h15m47s
Builds / XTchain (minimal, windows) (push) Successful in 1m49s
Bump LLVM
2025-11-06 19:55:10 +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();
}