[flang-commits] [flang] f8f96a4 - [flang][OpenMP] Rename variable `block` to `body`, NFC (#156702)
via flang-commits
flang-commits at lists.llvm.org
Thu Sep 4 05:55:27 PDT 2025
Author: Krzysztof Parzyszek
Date: 2025-09-04T07:55:23-05:00
New Revision: f8f96a4d4e607b60579e88e7054dbdd544f861e6
URL: https://github.com/llvm/llvm-project/commit/f8f96a4d4e607b60579e88e7054dbdd544f861e6
DIFF: https://github.com/llvm/llvm-project/commit/f8f96a4d4e607b60579e88e7054dbdd544f861e6.diff
LOG: [flang][OpenMP] Rename variable `block` to `body`, NFC (#156702)
`block` is a global variable that represents the Block parser, so avoid
using local variables with the same name.
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 cc4e59d318bbe..1b7665ce4acf5 100644
--- a/flang/lib/Parser/openmp-parsers.cpp
+++ b/flang/lib/Parser/openmp-parsers.cpp
@@ -1289,9 +1289,9 @@ struct StrictlyStructuredBlockParser {
if (lookAhead(skipStuffBeforeStatement >> "BLOCK"_tok).Parse(state)) {
if (auto epc{Parser<ExecutionPartConstruct>{}.Parse(state)}) {
if (IsFortranBlockConstruct(*epc)) {
- Block block;
- block.emplace_back(std::move(*epc));
- return std::move(block);
+ Block body;
+ body.emplace_back(std::move(*epc));
+ return std::move(body);
}
}
}
More information about the flang-commits
mailing list