forked from OSchip/llvm-project
[lld][MachO] Fix -Wsign-compare warning (NFC)
GCC warning: ``` /llvm-project/lld/MachO/InputFiles.cpp:484:24: warning: comparison of integer expressions of different signedness: ‘int64_t’ {aka ‘long int’} and ‘uint64_t’ {aka ‘long unsigned int’} [-Wsign-compare] 484 | return value < subsectionEntry.offset; | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ```
This commit is contained in:
parent
c664769330
commit
d441dee5c2
|
@ -480,7 +480,7 @@ void ObjFile::parseSymbols(ArrayRef<structs::nlist_64> nList,
|
|||
uint64_t offset = sym.n_value - sec.addr;
|
||||
|
||||
auto it = llvm::upper_bound(
|
||||
subsecMap, offset, [](int64_t value, SubsectionEntry subsectionEntry) {
|
||||
subsecMap, offset, [](uint64_t value, SubsectionEntry subsectionEntry) {
|
||||
return value < subsectionEntry.offset;
|
||||
});
|
||||
uint32_t size = it != subsecMap.end()
|
||||
|
|
Loading…
Reference in New Issue