From e494ebf9d09b1112dcf4f22984bdb51bbf5d8cd7 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Mon, 8 May 2023 18:37:55 -0500 Subject: [OpenMP] Fix incorrect interop type for number of dependencies The interop types use the number of dependencies in the function interface. Every other function uses an `i32` to count the number of dependencies except for the initialization function. This leads to codegen issues when the rest of the compiler passes in an `i32` that then creates an invalid call. Fix this to be consistent with the other uses. Reviewed By: tianshilei1992 Differential Revision: https://reviews.llvm.org/D150156 --- openmp/libomptarget/src/interop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openmp') diff --git a/openmp/libomptarget/src/interop.cpp b/openmp/libomptarget/src/interop.cpp index 0f258825bf50..0f6c887060ee 100644 --- a/openmp/libomptarget/src/interop.cpp +++ b/openmp/libomptarget/src/interop.cpp @@ -184,7 +184,7 @@ extern "C" { void __tgt_interop_init(ident_t *LocRef, kmp_int32 Gtid, omp_interop_val_t *&InteropPtr, kmp_interop_type_t InteropType, kmp_int32 DeviceId, - kmp_int64 Ndeps, kmp_depend_info_t *DepList, + kmp_int32 Ndeps, kmp_depend_info_t *DepList, kmp_int32 HaveNowait) { kmp_int32 NdepsNoalias = 0; kmp_depend_info_t *NoaliasDepList = NULL; -- cgit v1.2.1