[llvm] [OpenMP] Fix stack corruption due to argument mismatch (PR #96386)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 25 12:20:58 PDT 2024


================
@@ -207,8 +207,7 @@ EXTERN void __tgt_target_data_update_mapper(ident_t *Loc, int64_t DeviceId,
 EXTERN void __tgt_target_data_update_nowait_mapper(
     ident_t *Loc, int64_t DeviceId, int32_t ArgNum, void **ArgsBase,
     void **Args, int64_t *ArgSizes, int64_t *ArgTypes, map_var_info_t *ArgNames,
-    void **ArgMappers, int32_t DepNum, void *DepList, int32_t NoAliasDepNum,
-    void *NoAliasDepList) {
+    void **ArgMappers) {
----------------
shiltian wrote:

Yes. If it is nowait, push extra null values.

https://github.com/llvm/llvm-project/pull/96386


More information about the llvm-commits mailing list