================
@@ -401,10 +439,15 @@ AppliedModifierInfo GetAppliedModifiers(llvm::omp::Clause 
clauseId,
           [&](auto &&t) {
             auto &am{info.elements.emplace_back(AppliedModifier{})};
             am.id = WithSource{t.Id, m.source};
-            for (auto s : cdesc.getModifierSets(version)) {
-              auto &sdesc{llvm::omp::getDescriptor(s)};
-              if (sdesc.getModifiers(version).test(am.id.value)) {
-                am.sets.set(s);
+            am.version = GetClosestVersion(
----------------
Saieiei wrote:

Could you add a duplicate `iterator` case to `from-clause-v45.f90`? With 
`-fopenmp-version=45`, this change adds the duplicate-iterator error alongside 
the version warning. The existing test passes on both the base and this 
revision, so it doesn't exercise that new check.

https://github.com/llvm/llvm-project/pull/229525
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to