diff options
author | Martin Storsjö <martin@martin.st> | 2022-11-10 13:37:00 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2022-11-11 14:55:25 +0300 |
commit | 29ef16c29f4c736aa1c3d770f0ecdf4409db5622 (patch) | |
tree | cc5f01968e01789e40b842ccb3ad8c6c5eb6f238 /openmp | |
parent | 323b4309e2418a8662e814b60cd32090b4543337 (diff) |
[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
Diffstat (limited to 'openmp')
-rw-r--r-- | openmp/runtime/test/omp_testsuite.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/runtime/test/omp_testsuite.h b/openmp/runtime/test/omp_testsuite.h index c3b5a90178fb..b1dcf8ff2ad7 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); |