Skip to content

Commit 7a2cae2

Browse files
kparzyszPriyanshu3820
authored andcommitted
[flang][OpenMP] Fix build with gcc 7.5.0 (llvm#169184)
1 parent f9e6db9 commit 7a2cae2

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)