From a6cbfb53c23606f21e65e647e88cc153cb6f8e52 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Thu, 15 Sep 2016 18:22:21 +0000 Subject: [PATCH] [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. llvm-svn: 281636 --- llvm/lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp b/llvm/lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp index ee9e89b..aa05938 100644 --- a/llvm/lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp +++ b/llvm/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 { -- 2.7.4