forked from OSchip/llvm-project
[LLD] [COFF] Fix a ubsan error in pdb-type-server-missing.yaml
This error has been present since 5519e4da83
.
Differential Revision: https://reviews.llvm.org/D89027
This commit is contained in:
parent
fc5e68fab9
commit
d77d727339
|
@ -1088,7 +1088,8 @@ void TypeMerger::mergeTypesWithGHash() {
|
||||||
}
|
}
|
||||||
parallelSort(entries, std::less<GHashCell>());
|
parallelSort(entries, std::less<GHashCell>());
|
||||||
log(formatv("ghash table load factor: {0:p} (size {1} / capacity {2})\n",
|
log(formatv("ghash table load factor: {0:p} (size {1} / capacity {2})\n",
|
||||||
double(entries.size()) / tableSize, entries.size(), tableSize));
|
tableSize ? double(entries.size()) / tableSize : 0,
|
||||||
|
entries.size(), tableSize));
|
||||||
|
|
||||||
// Find out how many type and item indices there are.
|
// Find out how many type and item indices there are.
|
||||||
auto mid =
|
auto mid =
|
||||||
|
|
Loading…
Reference in New Issue