diff options
author | Krzysztof Parzyszek <Krzysztof.Parzyszek@amd.com> | 2024-04-22 15:33:52 -0500 |
---|---|---|
committer | Krzysztof Parzyszek <Krzysztof.Parzyszek@amd.com> | 2024-04-22 15:35:42 -0500 |
commit | b8ff08d0e668e5397dd799b76ede0bd54fcba75c (patch) | |
tree | 4a30a71ae72961803004d0bd3ab5b5589472b477 | |
parent | a3e7a125e11872b97a84bf7766ce05ccc100e896 (diff) | |
download | llvm-b8ff08d0e668e5397dd799b76ede0bd54fcba75c.zip llvm-b8ff08d0e668e5397dd799b76ede0bd54fcba75c.tar.gz llvm-b8ff08d0e668e5397dd799b76ede0bd54fcba75c.tar.bz2 |
[Frontend][OpenMP] Add missing "return" statement after 40137ff0d81be
When responding to review comments, `return {}` was accidentally replaced
by `std::nullptr` instead of `return std::nullptr`.
-rw-r--r-- | llvm/lib/Frontend/OpenMP/OMP.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Frontend/OpenMP/OMP.cpp b/llvm/lib/Frontend/OpenMP/OMP.cpp index e958bce..e097510 100644 --- a/llvm/lib/Frontend/OpenMP/OMP.cpp +++ b/llvm/lib/Frontend/OpenMP/OMP.cpp @@ -29,7 +29,7 @@ namespace llvm::omp { ArrayRef<Directive> getLeafConstructs(Directive D) { auto Idx = static_cast<std::size_t>(D); if (Idx >= Directive_enumSize) - std::nullopt; + return std::nullopt; const auto *Row = LeafConstructTable[LeafConstructTableOrdering[Idx]]; return ArrayRef(&Row[2], static_cast<int>(Row[1])); } |