Skip to content

Conversation

@kparzysz
Copy link
Contributor

@kparzysz kparzysz commented Dec 4, 2025

This fixes a build break with older compilers after PR170351.

This fixes a build break with older compilers after PR170351.
@llvmbot llvmbot added flang Flang issues not falling into any other category flang:parser labels Dec 4, 2025
@llvmbot
Copy link
Member

llvmbot commented Dec 4, 2025

@llvm/pr-subscribers-flang-parser

Author: Krzysztof Parzyszek (kparzysz)

Changes

This fixes a build break with older compilers after PR170351.


Full diff: https://github.com/llvm/llvm-project/pull/170677.diff

1 Files Affected:

  • (modified) flang/lib/Parser/openmp-utils.cpp (+1-1)
diff --git a/flang/lib/Parser/openmp-utils.cpp b/flang/lib/Parser/openmp-utils.cpp
index 506442015aae2..4c38917e87d29 100644
--- a/flang/lib/Parser/openmp-utils.cpp
+++ b/flang/lib/Parser/openmp-utils.cpp
@@ -123,7 +123,7 @@ const OmpObjectList *GetOmpObjectList(const OmpClause &clause) {
 const OmpObjectList *GetOmpObjectList(const OmpClause::Depend &clause) {
   return common::visit(
       common::visitors{
-          [](const OmpDoacross &) { return nullptr; },
+          [](const OmpDoacross &) -> const OmpObjectList * { return nullptr; },
           [](const OmpDependClause::TaskDep &x) { return GetOmpObjectList(x); },
       },
       clause.v.u);

@kparzysz kparzysz merged commit 68caa8b into main Dec 4, 2025
11 of 12 checks passed
@kparzysz kparzysz deleted the users/kparzysz/explicit-return-type branch December 4, 2025 15:47
kcloudy0717 pushed a commit to kcloudy0717/llvm-project that referenced this pull request Dec 4, 2025
…0677)

This fixes a build break with older compilers after PR170351.
ronlieb pushed a commit to ROCm/llvm-project that referenced this pull request Dec 5, 2025
…0677)

This fixes a build break with older compilers after PR170351.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

flang:parser flang Flang issues not falling into any other category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants