Skip to content

Commit f8f96a4

Browse files
authored
[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.
1 parent 8bdd909 commit f8f96a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flang/lib/Parser/openmp-parsers.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,9 +1289,9 @@ struct StrictlyStructuredBlockParser {
12891289
if (lookAhead(skipStuffBeforeStatement >> "BLOCK"_tok).Parse(state)) {
12901290
if (auto epc{Parser<ExecutionPartConstruct>{}.Parse(state)}) {
12911291
if (IsFortranBlockConstruct(*epc)) {
1292-
Block block;
1293-
block.emplace_back(std::move(*epc));
1294-
return std::move(block);
1292+
Block body;
1293+
body.emplace_back(std::move(*epc));
1294+
return std::move(body);
12951295
}
12961296
}
12971297
}

0 commit comments

Comments
 (0)