[PDB] Fix a bug where we were serializing hash tables incorrectly.
authorZachary Turner <zturner@google.com>
Thu, 15 Mar 2018 22:31:00 +0000 (22:31 +0000)
committerZachary Turner <zturner@google.com>
Thu, 15 Mar 2018 22:31:00 +0000 (22:31 +0000)
commitedbcbe0b62d6bfe729eeb6b7adb6d3a316a332e7
treed66d46864cf0defeecf62c1a216580c45068a3b9
parent92e6fbf54aabaf82bb4457ece3e85316cf38a505
[PDB] Fix a bug where we were serializing hash tables incorrectly.

There was some code that tried to calculate the number of 4-byte
words required to hold N bits, but it was instead computing the
number of bytes required to hold N bits.  This was leading to
extraneous data being output into the hash table, which would
cause certain operations in DIA (the Microsoft PDB reader) to
fail.

llvm-svn: 327675
llvm/include/llvm/DebugInfo/PDB/Native/HashTable.h
llvm/lib/DebugInfo/PDB/Native/HashTable.cpp