Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions flang/lib/Semantics/resolve-labels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -492,10 +492,9 @@ class ParseTreeAnalyzer {
// Uppercase the name of the main program, so that its symbol name
// would be unique from similarly named non-main-program symbols.
auto upperCaseCharBlock = [](const parser::CharBlock &cb) {
char *ch{const_cast<char *>(cb.begin())};
char *endCh{ch + cb.size()};
while (ch != endCh) {
*ch++ = parser::ToUpperCaseLetter(*ch);
auto ch{const_cast<char *>(cb.begin())};
for (char *endCh{ch + cb.size()}; ch != endCh; ++ch) {
*ch = parser::ToUpperCaseLetter(*ch);
}
};
const parser::CharBlock *progName{nullptr};
Expand Down
Loading