From: Martin Storsjö Date: Thu, 10 Nov 2022 10:37:00 +0000 (+0000) Subject: [openmp] [test] Set the right calling convention for the Windows thread start function X-Git-Tag: upstream/17.0.6~27942 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=29ef16c29f4c736aa1c3d770f0ecdf4409db5622;p=platform%2Fupstream%2Fllvm.git [openmp] [test] Set the right calling convention for the Windows thread start function This is required on i386 Windows; this fixes 99 testcases in that build configuration. Differential Revision: https://reviews.llvm.org/D137776 --- diff --git a/openmp/runtime/test/omp_testsuite.h b/openmp/runtime/test/omp_testsuite.h index c3b5a90..b1dcf8f 100644 --- a/openmp/runtime/test/omp_testsuite.h +++ b/openmp/runtime/test/omp_testsuite.h @@ -86,7 +86,7 @@ struct thread_func_info_t { }; // call the void* start_routine(void*); -static DWORD __thread_func_wrapper(LPVOID lpParameter) { +static DWORD WINAPI __thread_func_wrapper(LPVOID lpParameter) { struct thread_func_info_t* function_information; function_information = (struct thread_func_info_t*)lpParameter; function_information->start_routine(function_information->arg);