[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:
Martin Storsjö 2020-10-08 09:49:16 +03:00
parent fc5e68fab9
commit d77d727339
1 changed files with 2 additions and 1 deletions

View File

@ -1088,7 +1088,8 @@ void TypeMerger::mergeTypesWithGHash() {
}
parallelSort(entries, std::less<GHashCell>());
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.
auto mid =