================ @@ -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; ---------------- kparzysz wrote:
The OmpValidateModifiiers function should be doing that. I can add a testcase for that. https://github.com/llvm/llvm-project/pull/149137 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits