Skip to content

Commit b8ff08d

Browse files
committed
[Frontend][OpenMP] Add missing "return" statement after 40137ff
When responding to review comments, `return {}` was accidentally replaced by `std::nullptr` instead of `return std::nullptr`.
1 parent a3e7a12 commit b8ff08d

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
@@ -29,7 +29,7 @@ namespace llvm::omp {
2929
ArrayRef<Directive> getLeafConstructs(Directive D) {
3030
auto Idx = static_cast<std::size_t>(D);
3131
if (Idx >= Directive_enumSize)
32-
std::nullopt;
32+
return std::nullopt;
3333
const auto *Row = LeafConstructTable[LeafConstructTableOrdering[Idx]];
3434
return ArrayRef(&Row[2], static_cast<int>(Row[1]));
3535
}

0 commit comments

Comments
 (0)