Index: llvm/lib/Support/Windows/Threading.inc =================================================================== --- llvm/lib/Support/Windows/Threading.inc +++ llvm/lib/Support/Windows/Threading.inc @@ -34,7 +34,7 @@ } static void -llvm_execute_on_thread_impl(_beginthreadex_proc_type ThreadFunc, void *Arg, +llvm_execute_on_thread_impl(unsigned (__stdcall *ThreadFunc)(void *), void *Arg, llvm::Optional StackSizeInBytes, JoiningPolicy JP) { HANDLE hThread = (HANDLE)::_beginthreadex(