Skip to content

Commit a626be8

Browse files
committed
Address review comments
1 parent 4593582 commit a626be8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Frontend/OpenMP/OMP.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ namespace llvm::omp {
6666
ArrayRef<Directive> getLeafConstructs(Directive D) {
6767
auto Idx = static_cast<std::size_t>(D);
6868
if (Idx >= Directive_enumSize)
69-
return {};
69+
return std::nullopt;
7070
const auto *Row = LeafConstructTable[LeafConstructTableOrdering[Idx]];
71-
return ArrayRef(&Row[2], &Row[2] + static_cast<int>(Row[1]));
71+
return ArrayRef(&Row[2], static_cast<int>(Row[1]));
7272
}
7373

7474
ArrayRef<Directive> getLeafConstructsOrSelf(Directive D) {

0 commit comments

Comments
 (0)