Skip to content

Commit af263ce

Browse files
committed
[LLD][ELF] Silence warning when building with Clang ToT
This fixes: ``` [5839/7452] Building CXX object tools\lld\ELF\CMakeFiles\lldELF.dir\MapFile.cpp.obj C:\git\llvm-project\lld\ELF\MapFile.cpp(124,38): warning: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'const ssize_t' (aka 'const int') [-Wsign-compare] 124 | last.outputOff + last.size == p.outputOff) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ 1 warning generated. ```
1 parent 40dcf24 commit af263ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lld/ELF/MapFile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ static void printEhFrame(raw_ostream &os, const EhFrameSection *sec) {
121121
if (!pieces.empty()) {
122122
EhSectionPiece &last = pieces.back();
123123
if (last.sec == p.sec && last.inputOff + last.size == p.inputOff &&
124-
last.outputOff + last.size == p.outputOff) {
124+
last.outputOff + last.size == (unsigned)p.outputOff) {
125125
last.size += p.size;
126126
return;
127127
}

0 commit comments

Comments
 (0)