Skip to content

Commit e83cc89

Browse files
authored
[flang][OpenMP] Fix build with gcc 7.5.0 (#169184)
1 parent 8baa5bf commit e83cc89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/lib/Parser/openmp-parsers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ template <typename ExecParser> struct AsBlockParser {
7171
if (auto &&exec{attempt(epc_).Parse(state)}) {
7272
Block body;
7373
body.push_back(std::move(*exec));
74-
return body;
74+
return std::move(body); // std::move for GCC 7.5.0
7575
}
7676
return std::nullopt;
7777
}

0 commit comments

Comments
 (0)