[clang] [OpenMP 6.0] Allow only byref arguments with `need_device_addr` modifier on `adjust_args` clause (PR #149586)
Alexey Bataev via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 18 14:19:49 PDT 2025
================
@@ -7612,6 +7612,21 @@ void SemaOpenMP::ActOnOpenMPDeclareVariantDirective(
return;
}
+ // OpenMP 6.0 [9.6.2 (page 332, line 31-33, adjust_args clause, Restrictions]
+ // If the `need_device_addr` adjust-op modifier is present, each list item
+ // that appears in the clause must refer to an argument in the declaration of
+ // the function variant that has a reference type
+ for (Expr *E : AdjustArgsNeedDeviceAddr) {
----------------
alexey-bataev wrote:
Need a check for the version
https://github.com/llvm/llvm-project/pull/149586
More information about the cfe-commits
mailing list