We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4593582 commit a626be8Copy full SHA for a626be8
llvm/lib/Frontend/OpenMP/OMP.cpp
@@ -66,9 +66,9 @@ namespace llvm::omp {
66
ArrayRef<Directive> getLeafConstructs(Directive D) {
67
auto Idx = static_cast<std::size_t>(D);
68
if (Idx >= Directive_enumSize)
69
- return {};
+ return std::nullopt;
70
const auto *Row = LeafConstructTable[LeafConstructTableOrdering[Idx]];
71
- return ArrayRef(&Row[2], &Row[2] + static_cast<int>(Row[1]));
+ return ArrayRef(&Row[2], static_cast<int>(Row[1]));
72
}
73
74
ArrayRef<Directive> getLeafConstructsOrSelf(Directive D) {
0 commit comments