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

Shilei Tian via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 27 05:44:10 PDT 2024


================
@@ -10343,6 +10343,23 @@ void CGOpenMPRuntime::emitTargetDataStandAloneCall(
         MapNamesArray,
         InputInfo.MappersArray.emitRawPointer(CGF)};
 
+    // Nowait calls have header declarations that take 13 arguments. Hence, the
----------------
shiltian wrote:

You can make `OffloadingArgs` above a `SmallVector<llvm::Value *>` and then push extra arguments if needed.

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


More information about the cfe-commits mailing list