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:
Rui Ueyama 2015-09-21 19:41:38 +00:00
parent 50a4c27f97
commit 97d92736f5
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}