[llvm] r281636 - [pdb] Fix the TPI stream size computation.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 15 11:22:21 PDT 2016
Author: zturner
Date: Thu Sep 15 13:22:21 2016
New Revision: 281636
URL: http://llvm.org/viewvc/llvm-project?rev=281636&view=rev
Log:
[pdb] Fix the TPI stream size computation.
We were inadvertently adding the size of the hash value stream to
the size of the TPI stream, even though the hash value stream is
an entirely separate stream.
Modified:
llvm/trunk/lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp
Modified: llvm/trunk/lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp?rev=281636&r1=281635&r2=281636&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp (original)
+++ llvm/trunk/lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp Thu Sep 15 13:22:21 2016
@@ -64,8 +64,7 @@ Error TpiStreamBuilder::finalize() {
}
uint32_t TpiStreamBuilder::calculateSerializedLength() const {
- return sizeof(TpiStreamHeader) + TypeRecordStream.getLength() +
- calculateHashBufferSize();
+ return sizeof(TpiStreamHeader) + TypeRecordStream.getLength();
}
uint32_t TpiStreamBuilder::calculateHashBufferSize() const {
More information about the llvm-commits
mailing list