Skip to content

Commit 5b29058

Browse files
authored
[LLVM][OpenMP] Add older versions to llvm::omp::getOpenMPVersions (#138967)
Add 3.1 and 4.0 as versions. This will make flang's default OpenMP version (3.1) be included in the list.
1 parent 1d3f8f4 commit 5b29058

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Frontend/OpenMP/OMP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ bool isCombinedConstruct(Directive D) {
190190
}
191191

192192
ArrayRef<unsigned> getOpenMPVersions() {
193-
static unsigned Versions[]{45, 50, 51, 52, 60};
193+
static unsigned Versions[]{31, 40, 45, 50, 51, 52, 60};
194194
return Versions;
195195
}
196196

0 commit comments

Comments
 (0)