Skip to content

Commit 68caa8b

Browse files
authored
[flang][OpenMP] Add explicit return type to visitor function (llvm#170677)
This fixes a build break with older compilers after PR170351.
1 parent 4c17f9b commit 68caa8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/lib/Parser/openmp-utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ const OmpObjectList *GetOmpObjectList(const OmpClause &clause) {
123123
const OmpObjectList *GetOmpObjectList(const OmpClause::Depend &clause) {
124124
return common::visit(
125125
common::visitors{
126-
[](const OmpDoacross &) { return nullptr; },
126+
[](const OmpDoacross &) -> const OmpObjectList * { return nullptr; },
127127
[](const OmpDependClause::TaskDep &x) { return GetOmpObjectList(x); },
128128
},
129129
clause.v.u);

0 commit comments

Comments
 (0)