Skip to content

Commit 123bc29

Browse files
Address a comment.
1 parent baadbee commit 123bc29

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/MC/MCContext.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -477,10 +477,10 @@ MCSymbolXCOFF *MCContext::createXCOFFSymbolImpl(const MCSymbolTableEntry *Name,
477477

478478
// Append the hex values of '_' and invalid characters with "_Renamed..";
479479
// at the same time replace invalid characters with '_'.
480-
for (char &I : InvalidName) {
481-
if (!MAI->isAcceptableChar(I) || I == '_') {
482-
raw_svector_ostream(ValidName).write_hex(I);
483-
I = '_';
480+
for (char &C : InvalidName) {
481+
if (!MAI->isAcceptableChar(C) || C == '_') {
482+
raw_svector_ostream(ValidName).write_hex(C);
483+
C = '_';
484484
}
485485
}
486486

0 commit comments

Comments
 (0)