diff --git a/lld/COFF/ICF.cpp b/lld/COFF/ICF.cpp index 33208fff1784..5df3d5d06939 100644 --- a/lld/COFF/ICF.cpp +++ b/lld/COFF/ICF.cpp @@ -86,7 +86,7 @@ uint64_t ICF::getHash(SectionChunk *C) { hash_value(C->SectionName), C->NumRelocs, uint32_t(C->Header->SizeOfRawData), - std::distance(C->Relocs.end(), C->Relocs.begin()), + uint32_t(C->Header->SizeOfRawData), C->Checksum); }