forked from OSchip/llvm-project
COFF: Improve section hash value.
std::distance(C->Relocs.end(), C->Relocs.begin()) is the same as NumRelocs which is already added to the hash value. What we are missing here is the section size. llvm-svn: 248202
This commit is contained in:
parent
50a4c27f97
commit
97d92736f5
|
@ -86,7 +86,7 @@ uint64_t ICF::getHash(SectionChunk *C) {
|
||||||
hash_value(C->SectionName),
|
hash_value(C->SectionName),
|
||||||
C->NumRelocs,
|
C->NumRelocs,
|
||||||
uint32_t(C->Header->SizeOfRawData),
|
uint32_t(C->Header->SizeOfRawData),
|
||||||
std::distance(C->Relocs.end(), C->Relocs.begin()),
|
uint32_t(C->Header->SizeOfRawData),
|
||||||
C->Checksum);
|
C->Checksum);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue