We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e5b2fb commit b6ea04aCopy full SHA for b6ea04a
flang/lib/Semantics/resolve-labels.cpp
@@ -492,10 +492,9 @@ class ParseTreeAnalyzer {
492
// Uppercase the name of the main program, so that its symbol name
493
// would be unique from similarly named non-main-program symbols.
494
auto upperCaseCharBlock = [](const parser::CharBlock &cb) {
495
- char *ch{const_cast<char *>(cb.begin())};
496
- char *endCh{ch + cb.size()};
497
- while (ch != endCh) {
498
- *ch++ = parser::ToUpperCaseLetter(*ch);
+ auto ch{const_cast<char *>(cb.begin())};
+ for (char *endCh{ch + cb.size()}; ch != endCh; ++ch) {
+ *ch = parser::ToUpperCaseLetter(*ch);
499
}
500
};
501
const parser::CharBlock *progName{nullptr};
0 commit comments