[lld] r326090 - [ELF] - Fix variable name and mistype in comment. NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 26 07:16:03 PST 2018
Author: grimar
Date: Mon Feb 26 07:16:03 2018
New Revision: 326090
URL: http://llvm.org/viewvc/llvm-project?rev=326090&view=rev
Log:
[ELF] - Fix variable name and mistype in comment. NFC.
Modified:
lld/trunk/ELF/Writer.cpp
Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=326090&r1=326089&r2=326090&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Mon Feb 26 07:16:03 2018
@@ -1965,11 +1965,11 @@ static void checkForSectionOverlap(Array
[=](const OutputSection *A, const OutputSection *B) {
return GetStart(A) < GetStart(B);
});
- for (size_t i = 0; i < Sections.size(); ++i) {
- OutputSection *Sec = Sections[i];
+ for (size_t I = 0; I < Sections.size(); ++I) {
+ OutputSection *Sec = Sections[I];
uint64_t Start = GetStart(Sec);
- for (auto *Other : ArrayRef<OutputSection *>(Sections).slice(i + 1)) {
- // Since the sections are storted by start address we only need to check
+ for (auto *Other : ArrayRef<OutputSection *>(Sections).slice(I + 1)) {
+ // Since the sections are sorted by start address we only need to check
// whether the other sections starts before the end of Sec. If this is
// not the case we can break out of this loop since all following sections
// will also start after the end of Sec.
More information about the llvm-commits
mailing list