[llvm-branch-commits] [flang] [llvm] [flang][OpenMP] Sema checks, lowering with new format of MAP modifiers (PR #149137)
Tom Eccles via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Jul 21 06:25:18 PDT 2025
================
@@ -402,6 +402,11 @@ class CanonicalizationOfOmp {
// if the specified OpenMP version is less than 6.0, rewrite the affected
// modifiers back into the pre-6.0 forms.
void CanonicalizeMapModifiers(parser::OmpMapClause &map) {
+ unsigned version{context_.langOptions().OpenMPVersion};
+ if (version >= 60) {
+ return;
----------------
tblah wrote:
Should we warn about the new map modifiers being used with older versions?
https://github.com/llvm/llvm-project/pull/149137
More information about the llvm-branch-commits
mailing list