summaryrefslogtreecommitdiff
path: root/openmp
diff options
context:
space:
mode:
authorJoseph Huber <jhuber6@vols.utk.edu>2023-05-08 18:37:55 -0500
committerJoseph Huber <jhuber6@vols.utk.edu>2023-05-08 21:02:43 -0500
commite494ebf9d09b1112dcf4f22984bdb51bbf5d8cd7 (patch)
treead960e29492723e56009d60a14cf877d567ad45c /openmp
parent6fcb91b2f756857f1295a28990738b5b6f924226 (diff)
downloadllvm-e494ebf9d09b1112dcf4f22984bdb51bbf5d8cd7.tar.gz
[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
Diffstat (limited to 'openmp')
-rw-r--r--openmp/libomptarget/src/interop.cpp2
1 files changed, 1 insertions, 1 deletions
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;