From: Zachary Turner Date: Thu, 15 Sep 2016 18:22:21 +0000 (+0000) Subject: [pdb] Fix the TPI stream size computation. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6baec2e728b7d1a7ca77dd716e7bb9aec8737c95;p=llvm [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281636 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp b/lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp index ee9e89bbe59..aa059387f6b 100644 --- a/lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp +++ b/lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp @@ -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 {