[flang-commits] [clang] [flang] [llvm] [OpenMP] Make OpenMP version have separate type (PR #219820)
Alexey Bataev via flang-commits
flang-commits at lists.llvm.org
Mon Aug 31 13:01:33 PDT 2026
================
@@ -209,15 +209,17 @@ bool isCombinedConstruct(Directive D) {
return !getLeafConstructs(D).empty() && !isCompositeConstruct(D);
}
-ArrayRef<unsigned> getOpenMPVersions() {
- static unsigned Versions[]{31, 40, 45, 50, 51, 52, 60, 61};
+ArrayRef<Version> getOpenMPVersions() {
+ // static Version Versions[]{31, 40, 45, 50, 51, 52, 60, 61};
+ static Version Versions[]{Version(31), Version(40), Version(45), Version(50),
+ Version(51), Version(52), Version(60), Version(61)};
----------------
alexey-bataev wrote:
Remove?
https://github.com/llvm/llvm-project/pull/219820
More information about the flang-commits
mailing list