[PATCH] D89027: [LLD] [COFF] Fix a ubsan error in pdb-type-server-missing.yaml
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 12 13:28:50 PDT 2020
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd77d727339a7: [LLD] [COFF] Fix a ubsan error in pdb-type-server-missing.yaml (authored by mstorsjo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89027/new/
https://reviews.llvm.org/D89027
Files:
lld/COFF/DebugTypes.cpp
Index: lld/COFF/DebugTypes.cpp
===================================================================
--- lld/COFF/DebugTypes.cpp
+++ lld/COFF/DebugTypes.cpp
@@ -1088,7 +1088,8 @@
}
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 =
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89027.297683.patch
Type: text/x-patch
Size: 573 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201012/5fd3422c/attachment.bin>
More information about the llvm-commits
mailing list