[flang-commits] [flang] e83cc89 - [flang][OpenMP] Fix build with gcc 7.5.0 (#169184)
via flang-commits
flang-commits at lists.llvm.org
Sat Nov 22 11:47:20 PST 2025
Author: Krzysztof Parzyszek
Date: 2025-11-22T13:47:16-06:00
New Revision: e83cc896e7c2378914a391f942c188d454b517d2
URL: https://github.com/llvm/llvm-project/commit/e83cc896e7c2378914a391f942c188d454b517d2
DIFF: https://github.com/llvm/llvm-project/commit/e83cc896e7c2378914a391f942c188d454b517d2.diff
LOG: [flang][OpenMP] Fix build with gcc 7.5.0 (#169184)
Added:
Modified:
flang/lib/Parser/openmp-parsers.cpp
Removed:
################################################################################
diff --git a/flang/lib/Parser/openmp-parsers.cpp b/flang/lib/Parser/openmp-parsers.cpp
index a0c94296de5ed..0652dac209dbb 100644
--- a/flang/lib/Parser/openmp-parsers.cpp
+++ b/flang/lib/Parser/openmp-parsers.cpp
@@ -71,7 +71,7 @@ template <typename ExecParser> struct AsBlockParser {
if (auto &&exec{attempt(epc_).Parse(state)}) {
Block body;
body.push_back(std::move(*exec));
- return body;
+ return std::move(body); // std::move for GCC 7.5.0
}
return std::nullopt;
}
More information about the flang-commits
mailing list